Stuck on Creating Radio Buttons

Tell us what’s happening:
I am stuck on this part- I read and re-read the instructions, even clicked on get a hint and watched the video two times. I did it exactly like it said to in the video etc. But it’s still saying I didnt do two things right? like the name should be indoor-outdoor, which they both say.

Your code so far

Indoor Outdoor

<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 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>
    
<input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>
  </form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36.

Each of your radio buttons can be nested within its own label element. By wrapping an input element inside of a label element it will automatically associate the radio button input with the label element surrounding it.

I figured it out by looking at similar posts from people who were stuck! Thank you though for helping me I appreciate it. :grinning:

I’m glad to hear that the forum is working! Congratulations on figuring it out. Happy coding!