This site is rarely updated. benbrophy.com is more up-to-date. - Ben

Peeved by sloppy HTML

You know what peeves me? When people don't put <label> tags around their checkbox labels. Because I like clicking label. I don't want to have to aim for that little teeny checkbox.

Here's what I mean.

This one does not.

See? You can click the label on the first one and checks the box. It also makes it much easier for people using screen readers, or those who are just a little ham-handed, to fill out a form.

Admittedly I only started using label tags consistently in the last 12 months or so, as a result of doing accessibility testing on the Sakai style guide with the MIT ATIC lab. But now that I know to click on the label I do it all the time, both on the web and on the dialog boxes for my computer applications.

So all you HTML jockeys out there, using the label tag is easy and you're just not going to look slick with out it.

Tags:

Comments | 2005-08-08