Stuck Creating Label

**Tell
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

Thanks

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

</form>




</main>

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”
indoor.
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