Create a Set of Radio Buttons test

Tei ll us what’s happening:
i am at radio buttons on html5 test and i am pretty darn sure my code matches that of the video answer. i even screen shot it to compare. i understand 1 character can make a difference but it claims i have completed all requirements with the exception of giving the name attribute indoor outdoor, but i did. also it says not nested in a label element, also thought i did. is this a problem for anyone else i have reset the code 3 times

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

Your browser information:

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

Link to the challenge:

A search of the lesson title in the Forums gives 275 results.

Your inputs need to be nested in each of the 2 labels. Right now you have the inputs and labels seperate which is whats throwing you the error.

yea thats is. i got it just as u pointed it out. video is wrong. thanks alot, at least you helped im just starting its not that easy.

1 Like