Create a Set of Radio Buttons, nesting not registering?

Hey everyone, I’ve passed all of the objectives apart from " Each of your two radio button elements should be nested in its own label element." But each of my buttons are nested in a label element??? Any help would be great!

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons

take a quick look over this and see if it’s ok… anything missing?

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

edit: compare it to the example they give for a radio button:

Here's an example of a radio button:

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

Welllllll I’m an idiot haha thanks DarrenfJ >>

1 Like

it’s always harder to see the trees through the forest when you are the one looking…

Often take a separate set of eyes…

:smiley: