i am doing my HTLM course with a challenge [ Challenge Guide: Fill in the Blank with Placeholder Text] but its not letting me carry on as it is saying I have got it wrong? and it wont let me move on
We’ll need to see your code to help you out
Share screenshot of code or codepen link
hey !
I am stuck on this code the lines are correct I believe
The code is:
<input id="indoor"type="radio"name="indoor-outdoor">
<label for="indoor">Indoor</label>
<input id="outdoor"type "radio" name="outdoor-indoor">
<label for="outdoor"></label> Outdoor </label>
it is not letting me pass
Thanks for your help
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.
Please 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.
You have not nested your radio button inside the label.
<parent tag>
<nested tag>
</parent tag>
<input id="indoor" type "radio" name="indoor-outdoor">Indoor>
<label for="indoor" type="indoor-outdoor">Indoor</label>
<input id="outdoor" type "radio" name = "outdoor-indoor">
<label for= "outdoor" type="outdoor-indoor">Outdoor</label
This is my code and its not letting me go on to the next lesson
have i done something wrong ?
thanks for your help
Jasmina jethwa
You still haven’t nested your radio buttons inside of the labels.
The challenge description provides an example of nesting, and I provided an example above as well. Is there something I can clarify about how to nest tags?
hi
Thank you for getting back to me!
do you think you can give me an example of how to nest a tag?
May I ask is this challenge part of Nest an Anchor Element within a Paragraph lesson?
Same idea. You need to put your radio button tag in between the opening and closing label tags
<parent>
<nested>
</parent>
or from the challenge
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">Indoor
</label>