Everything is inside "Form" but it's not working

Hello, everyone. I’ve fulfilled every requirement except for the last bit saying that “Each of your radio button elements should be added within the form tag.” I’ve put everything within the form element. So I really can’t see where did I go wrong.

My code so far

<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>
  <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="https://freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
<label for="indoor">
<input id="indoor-outdoor" type="radio" name="indoor-outdoor">Indoor 

<label for="outdoor"> 
<input id="indoor-outdoor" type="radio" name="indoor-outdoor">Outdoor
  <button type="submit">Submit</button>

Browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

1 Like

Hello @melybdenum. You have an unnecessary <div> tag wrapping your set of radio buttons. Remove those and you will pass the challenge.

Happy Non-Stuck Coding!

1 Like

Ooopss, silly me! Thank you, @paulsonstech!

1 Like