Posted by: bofe | December 20, 2004

The little things in life…

For those of us who’ve been doing HTML for years, it’s hard to teach an old dog new tricks. The label tag is one of those ‘new’ tricks even though it’s been around forever.

Case 1 (The old way):

Remember My Username and Password

Case 2 (The new and improved way):

Here’s case 1’s HTML:
Remember My Username and Password

Here’s case 2’s HTML:

The subtlety with these two techniques is being able to click text to make the form’s selection instead of forcing the user to click the very small region that the checkbox occupies. I’ve highlighted the text you can click in Case 2 to make the form’s selection.

The label tag makes all of the difference in this case.

Responses

Neat! I will use that trick from now on… Everyone (including me) will be trained to click the box directly and forget all about that label, though. :(

*adds to toolbox*

mush rove.

Categories