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.
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.