The code is right but the test says no

Tell us what’s happening:
After trying and trying, I just watched the video to explain me how to do it. I do exactly what the video says and it tells me that every Radio button must have its own label. So I end up just copy pasting what appears in the video and the test keeps saying no…I’m I wrong orwhat the hell?

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">
   <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>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Every radio input must be nested in its own label. You have them before labels.

The challenge description has two different examples that both show an input nested in a label.

Always listen to the challenge description, example, and tests above any video, hint, or solution you get elsewhere.

1 Like