What did I do wrong

Tell us what’s happening:

Your code so far


<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"> 
<label>
 <input id="indoor" type="radio" name="indoor-outdoor">indoor
<label for="Indoor">indoor</label>
<input id="outdoor" type="radio" name="indoor-outdoor">outdoor
<label for="outdoor">outdoor</label>
</label>

<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Check This question. It addresses the same issue.

Thank you for the speedy reply! Unfortunately I am still having the same problem. I took heed to the recommendation offered and to no avail it will not allow me to proceed forward.

You modified your code so that your radio buttons are nested inside of labels?

Remove the outer label tag. Then enclose each input inside its own label like:


<label for="indoor">indoor
     <input id="indoor" type="radio" name="indoor-outdoor">
</label>

@nibble, explained it well. Lately there is a lot of people that doesn’t really understand what this challenge is really asking.

  • The challenge is asking to nest your <input> tag inside its own <label> tag. Nesting in HTML means putting an element inside of another element, as @nibble has given us an example here:

thanks so much that worked!!!

1 Like