Radio Buttons and Form tag?!

Tell us what’s happening:
So far, I have got everything correct but the part where it says “Each of your radio button elements should be added within the form tag”. Confused!

   **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://www.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="https://www.freecatphotoapp.com/submit-cat-photo">
   <input type="text" placeholder="cat photo URL" required>
   <button type="submit">Submit</button>
   </form>
</main>
<label>
<input type="radio" name="indoor-outdoor">Indoor
</label>
<label>
<input type="radio" name="indoor-outdoor">Outdoor
</label>




   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hello, and welcome!

Notice the <form></form> tags?
Your newly created input buttons should be within those form tags! Perhaps working a little bit with the indentation might make you easily spot this?

P.S.: Don’t forget the </main> closing tag should still be after the form and radio button tags too!

Thank you! I did try putting them in the form tags, I must’ve overlooked that main tag. then.

1 Like

No worries, glad I could help :slight_smile:
Feel free to head back on the forums if you need help again!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.