Each of your radio buttons can be nested within its own label element. By wrapping an input element inside of a label element it will automatically associate the radio button input with the label element surrounding it.
The challenge description gives two examples of nested elements:
I’ll try to explain this another way so you can correct the errors in your code, separated by issue in hopes that this will help.
Nesting - look at how @ArielLeslie wrote the code and compare it with yours. You will notce <input> is nested within <label> . One way you can tell if something is nested easily is by looking at the CSS code properly formatted. If the line below is indented it is nested. Your code has 4 separate lines, none of which are nested.
Closing Tag - this is probably just something you didn’t pick up. It’s not really an error with the closing tag. This error is really because of your opening <label> tags. The word should be in lowercase.
TIP - make sure you pay attention to to the capitalizations in these exercises because other people have reported failing tests because of incorrect captalization.
If you need futher help, just let us know what’s throwing you off and we’ll try to explain it another way.
Hello everyone,
This lesson was so confusing for me but thanks to the video help, I was able to write the code. On the video help the man wrote:
" Indoor "
first then he put his label code on the next line but on the notes it had this example: ```
Indoor
My question is why on the challenge , the <label didn’t for go first? Why did the man write <input id= first instead? Does it matter the order?
I hope this make sense. I apologize if what I am asking is confusing.
Thanks in advance.
Challenges are updated periodically to make them more effective. Often a video may be old enough not to match the challenge exactly. The videos can be very helpful in learning how people approach the problem, but you need to use some critical thinking and apply the same approach to challenge requirements. In this case, the challenge states that inputs must be nested inside of labels.