WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: label element containing input element

for

From: Terence de Giere
Date: Nov 7, 2003 2:45PM


Enclosing the input element in the label element is 'implicit
association' of the label with the form control. It also allows certain
visual format effects using cascading style sheets, such as indicating
the label and the control are a single unit and go together, but some
browsers do not support this construction properly which may be why
screen readers are not handling this correctly. It probably is better to
keep the label separate from the control until the problem software is
sufficiently obsolete. Strictly speaking, the text in any element
between the start and end tags should be rendered by an HTML compliant
agent, whether or not the element is supported by the agent.

Terence de Giere
<EMAIL REMOVED>



----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/