Create a Set of Radio Buttons in HTML-CSS section

Tell us what’s happening:

Error - Each of your two radio button elements should be nested in its ownlabelelement.

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 type="text" placeholder="cat photo URL" required>
      <input type="radio" name="indoor-outdoor">Indoor
      <input type="radio" name="indoor-outdoor">Outdoor
    <button type="submit">Submit</button>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0.

Link to the challenge:

If you have two radio inputs, then you need two label elements. Also, do not forget to close your input tags.

  <input type="radio" name="indoor-outdoor">Indoor</input>
  <input type="radio" name="indoor-outdoor">Outdoor</input>
1 Like

Thanks @Sky020 now it's working.