Associating radio buttons with a particular option

Why is it that I can select the radio button for the option “indoor” by clicking on the word “indoor”, but I can not do the same with the radio button for “outdoor”? Instead, clicking on the word “outdoor” selects the button for “indoor”.

Id should be individual for every element, try fix this, might help

I made the first id=“indoor” and the second id=“outdoor”. The result is that I can only select buttons directly, rather than being able to select them by clicking on the word next to them as well.

But I think this is the case in that challenge
If not can you please provide link to the challenge

you also need to change the for attribute on the label, it needs to have the same value of the id of the label to link them


Thanks. That indeed is the trick.