Radio Button HELP!

Tell us what’s happening:

hello I have been working at this specific one for about 30 minutes checking and rechecking I just cant seem to figure this one out. I have watched the video tried it on my own also watched the spoiler alert. every time I try to work at this challenge I get this

“Each of your two radio button elements should be nested in its own label element.”

When I watch the video my code is the same as the code on the video…

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

</main>

Your browser information:

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

You have everything inside a label element (that label element shouldn’t be there) but then the two input elements are not nested inside their own label element

Okay, so I retried it according to the notes I have and watching the video 2 more times, this is what I came up with can you check my work?

<label for=“indoor”>

<input id=“indoor” type=“radio” name=“indoor-outdoor”>Indoor

<label for=“outdoor”>

<input id=“outdoor” type=“radio” name=“indoor-outdoor”>Outdoor

</label>

The first label element doesn’t have a closing tag

Okay, so I added the closing tag. then it said I was missing the and so I just moved my code up a few spaces to fit. could you recheck my work. I’m hoping this is correct so I can finally move on.

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

Do you get any error with this?

no finally I got it! thank you so. much for your help