Lesson: Radio Buttons

My code:

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

“Each of your radio button elements should be added within the form tag”

What am I doing wrong?

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 easier to read.

Note: Backticks are not single quotes.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


Can you post all of your code and the challenge url?

Did you resolve the issue yet? I came up with the identical code and can’t figure out what’s wrong with it.

Yeah! Send me a message!

Awesome! What was wrong with your original code?

Try to add <form></form>

There isn’t any bug in this lesson, if you could provide your code, we could sort it out