Lesson: Radio Buttons

Lesson: Radio Buttons
0

#1

My code:

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

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

What am I doing wrong?


#2

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?


#3

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


#4

Yeah! Send me a message!


#5

Awesome! What was wrong with your original code?


#6

Try to add <form></form>


#8

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