Each of your radio button elements should be added within the form tag. pls what is my mistake

Tell us what’s happening:

   **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://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://freecatphotoapp.com/submit-cat-photo">
   <input type="text" placeholder="cat photo URL" required>
   <button type="submit">Submit</button>
 
</main>

 <label
  for="indoor">
    <input id="indoor" type="radio" name="indoor-outdoor">Indoor</input>
</label>

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


   **Your browser information:**

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons

Hi,

your radio buttons are not in the form. Cut every thing after </main>, paste it before it and also close the form (</form>)!

1 Like

tank you for your help

1 Like

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