4 ms·
Browsers (when hinted with <label for="id">) already do this. Mousing over the label will highlight the check-box identically to mousing over the check-box. C
by Groxx 16y ago
Browsers (when hinted with <label for="id">) already do this. Mousing over the label will highlight the check-box identically to mousing over the check-box. Clicking the label clicks the box. While I haven't seen the label changing more than once or twice, I see people clicking the labels frequently enough to realize it's expected when it highlights the field.
Am I missing something? Or is this just about the ubiquitous lack of label-for?
edit: I despise the hand-cursor on anything but an action field (like a link). If it doesn't redirect my browser or open a popup, I don't want a hand. Ever.
- jonah 16y agoEveryone: Please use <label> tags for the descriptions of your form fields. This is good for Fitt's law, accessibility, and semantics. Thanks!
- stan_rogers 16y agoCouldn't agree more. The cursor should be the default for an element unless you've overridden the default behaviour as well (for instance, when a plain-Jane hyperlink becomes an AJAX button, the script that overrode the link behaviour should also override the "pointer" cursor).