Radio buttons should be added within your form tag?

Tell us what’s happening:

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36.

Link to the challenge:

Yes, they need to be inside the <form> tags.

Hi @livi. You have placed your radio buttons outside your form tag. Now it is right after the a tag. Remove that and place them inside your form tag. Place is below your input element with a placeholder ‘cat photo url’


THANK YOU!! its working…

1 Like