First of all thank you for creating FreeCodeCamp. It’s an amazing resource!
In the section “Create a Set of Radio Buttons”
It is considered best practice to set a
forattribute on the
labelelement, with a value that matches the value of the
idattribute of the
As someone who just started the bootcamp I was unaware of how the attribute works and after going through Google I found the answer on Stack Overflow:
The problem here is it tells me “just do it because you should”. I believe you can add a reason, or point to an external source giving the reason, why it’s considered good practice.
Including this information is important for learners since the Responsive Web Design course talks about accessibility.
Thanks for all your hard work and I hope this helps.