I’m almost done with this last test, the problem is that it says that my radio buttons aren’t given individual label elements when they are, what’s wrong?
I’m looking at what you posted and they’re not nested correctly. Look at the sample code in the lesson.
If you’ve updated your code then please post the updated code so I can look again.
Edit: you’ve only nested the label. You’re asked to nest the whole radio button.
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.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor ( </> ) will also add backticks around text.
So the first one is incorrect. See how you have <label> inside of the input element?
The second one is correct. If you make the first one look like the second you’ll pass the tests.
Btw @kalebross30, you’re doing good. One thing you should take away from all this. When you get the code correct, click on the radio button and you’ll see it gets selected. Then click on the label of the other radio button and you’ll see it gets selected.
When everything is properly nested users can click on the radio button (or checkbox) or the corresponding label to make their selection.
That is the purpose of this lesson. When you do the survey form project you’ll remember this.
It looks like if the <br> tag is added after the label it still works, but not if you add it after the input.
@kalebross30 Just be aware that adding code you are not asked to can break the tests.
Side note: We should probably get the video updated. I can make an issue, but the last video I tried to get an update for never happened. I can still try.