I cant go on with this!

Hi guys, my problem is at this radio buttons topic, when i create the line code that you see.

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

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

When i run it to test it, the console tells me “Each of your radio button elements should be added within the form tag.” so, what i did is this

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

And the console says that i need to put a label element and an indoor tag, it´s like the form tag doesn´t let the console read the rest of the code, i don´t know what to do. I need some help.

Thank you for read.

Your browser information:

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

I’ve edited your post for readability. 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 (’).

1 Like

You’re missing a > off the opening <form> tag

1 Like

Thank you for the edit and the solution :slight_smile: