Stuck Creating Label

Problem with my code for in indoor/outdoor label challenge

I watched the video, input exactly as the man did. The labels work fine on the cat app screen, however, my code isn’t passing the test. I have no idea what’s wrong with it. Please help


Your code so far

 <p>Click here to view more <a href="#">cat photos</a>.</p>

 <a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

 <p>Things cats love:</p>
   <li>cat nip</li>
   <li>laser pointers</li>
 <p>Top 3 things cats hate:</p>
   <li>flea treatment</li>
   <li>other cats</li>
 <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"
<label for="indoor">indoor</label>

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



Your browser information:

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hi, I am not sure but i think the problem is with this code

<input id="indoor"type=“radio” name=“indoor-outdoor”
It should be

<input id="indoor"type=“radio” name=“indoor-outdoor”>indoor
The same goes for the other input with label for=“outdoor”. your input tag is not properly closed . try this

Got it, thanks! Passed the test.

1 Like