I guess I am confused… I am watching the video and is telling me that if the the input id and the label are set up correctly to the same indoor or outdoor nesting is not necessary
it is true that it works fine, but if the video is telling that’s the way to solve the challenge then it is wrong
the challenge clearly asks for nested elements
can you take a look at the video. because I am very new at this just a few days and I can’t get pass this challenge.and I want to understand the concept.
Both solutions are right, BUT FreeCodeCamp’s challenge wants you to use the nested option. Otherwise your answer is not going to be approved by the platform.
thanks Jenro. I am very new to all this just a few days and I am stuck with this challenge I can’t understand the nesting concept for some reason.i am sure is simple but not for me at this moment.
I would keep at it hope something clicks
You need to put the radio button element in between the opening and closing tags of the label. This is called nesting. This is in the example code on the challenge and the posts above.
You are going to see this nesting concept several times while learning HTML. Don’t worry too much about it. After some practice you are going to understand this.