DEV Community

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

Collapse
patarapolw profile image
Pacharapol Withayasakpunt
Collapse
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.