How do i add each of my radio button element within the form tag?

Tell us what’s happening:
Describe your issue in detail here.

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

<input type = "radio" name = "indoor-outdoor"> indoor
<input type = "radio" name = "indoor-outdoor"> outdoor
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36

Challenge: Create a Set of Radio Buttons

Link to the challenge:

You just need to put your two radio buttons inside the <form> tag. Right now your radio buttons are outside the form.

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Khang Lê is right.

Your Radio Button Code is Good… it just needs to be moved:

Add a pair of radio buttons to you form. This Implies, between the <form> </form> tags.

Screenshot 2022-04-08 9.25.43 AM

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