WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: HTML Label Tags

for

From: Jason Megginson
Date: Jun 22, 2010 9:21AM


Ken,

You can also inspect whether label tags have been implemented properly by
"clicking" on the label text with the mouse. If the label has been
implemented correctly, the focus should be placed into the edit field.
This is a good way to check for label markup if you do not have automated
testing tools or screen readers at your disposal.

Note about this manual test: Newer versions of IE (versions 7 and 8) will
place focus into the fields if either 'explicit' or 'implicit' label
markup is used. We advocate the use of explicit label markup (matching the
'for' attribute to an 'id' attribute of a form element). This "click"
test is good to inspect whether any label markup is used at a minimum.

Hope this helps.
Jason Megginson
SSB BART Group
(O):703-637-8964
(C):703-244-7755