DEV Community

Discussion on: Do you still use IDs for unique elements?

alohci profile image
Nicholas Stimpson

No, the for attribute cross-references only to the id attribute. This is most important for radio buttons and check-boxes where multiple input elements share a common name to belong to the same group but each needs to be labelled differently.