Nest each radio button in its own label

I think I have the right code, but it keeps saying that Indoor does not have a label, and that the radio buttons need to each be nested in their own label element. My code is below, and I HAVE each in a label…

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

<label for="indoor"> 

Because you didn’t complete your opening form tag, the opening label tag is being read as part of it.

Thank you so much! I never would have figured that out.

You’ll get good at spotting these errors with practice.


Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats

I also was stuck here but I somehow managed to make it out