4 ms·
Isn't 'for' supposed to reference the 'id' of an input? All these examples reference 'name'.
by jasonkostempski 14y ago
Isn't 'for' supposed to reference the 'id' of an input? All these examples reference 'name'.
- ZoFreX 14y agoYes, you are correct [1] - it's a very common mistake in my experience. [1]: https://developer.mozilla.org/en-US/docs/HTML/Element/label https://developer.mozilla.org/en-US/docs/HTML/Element/label