Each of your radio button elements should be added within the form tag.I have tried many times but im not getting the output and i dont understand

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="https://www.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>
<label for="indoor"> 
<input id="indoor" type="radio" name="indoor-outdoor">Indoor 
<label for="indoor"> 
<input id="indoor" type="radio" name="indoor-outdoor">outdoor 
<form action="/submit-cat-photo" Submit indoor outdoor
"><label><input type="radio"name=“indoor-outdoor”>indoor</label>
<label><input type="radio"name=“indoor-outdoor”>outdoor</label>

  <button type="submit">Submit</button>
  **Your browser information:**

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

HI @Adithya_Surya !

Welcome to the forum!

I would reset the lesson because there are a few issues.

Make sure to turn off smart quotes on your device.
Programming uses straight quotes like these ""
These quotes are incorrect.

Don’t mess with the opening form tag here.

When you reset the lesson leave the opening form tag alone.

Hope that helps!


Also, you can delete this stuff here.

The radio buttons are supposed to be inside the form not outside.

Just like you did here

1 Like

i got it what you said mam. Thank you for the help . love from india

can you show me the answer mam

We are not allowed to give out answers on the forum.

What is your latest code.

Please post your new code in the forum.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

thank you mam i got the anwer. thank for quick reply

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