Radio label html

I am entering code exactly the way the lesson describes, and it keeps failing me for
Each of your two radio button elements should be nested in its own label element.
I don’t get it. This is what I was inputting:

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

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

It is nested correctly in the form.
I don’t understand why it is not passing…

please share the challenge link and your whole code for better help


I think all the challenges in that part of the curriculum request the input element nested in the label. There should be an example in the challenge description


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 (’).

Thank you for your help. :slight_smile: