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


<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>
</form>
<form 
<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>
</main>

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:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons

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

CatPhotoApp

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
Submit

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