Hi folks,
this is my code.
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>
<a href="#"><img src=“https://bit.ly/fcc-relaxing-cat ” alt=“A cute orange cat lying on its back.”></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input id=“indoor” type="radio"name=“indoor-outdoor”>
<label for=“indoor”>Indoor</label>
<input id=“outdoor” type=“radio” name=“indoor-outdoor”>
<label for=“outdoor”>Outdoor</label>
<input type=“text” placeholder=“cat photo URL” required>
<button type=“submit”>Submit</button>
</form>
</main>
I can not find the issue. Can someone help me, please?
dhcodes
December 15, 2018, 6:08pm
2
Bulgaria:
<form action=“/submit-cat-photo”>
<input id=“indoor” type="radio"name=“indoor-outdoor”>
<label for=“indoor”>Indoor</label>
Put a space between type="radio"
and name
in the section above.
There is no errors. Only question I have is do you need the / in the tion="/su
@dhcodes
I did exactly what you told me, but it is still doesn´t work. So, what can I do know?
Btw.: The challenge says this:
Blockquote: Give your radio buttons the name attribute of indoor-outdoor.
Each of your two radio button elements should be nested in it´s own lable element.
Blockquote
@Bulgaria put your inputs inside of the label.
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">Indoor
</label>
<label for="outdoor">
<input id="outdoor" type="radio" name="indoor-outdoor">outdoor
</label>
</form>
Yeah, it worked. Thank you very much man!!
1 Like