WebAIM - Web Accessibility In Mind

E-mail List Archives

label element containing input element

for

From: Dey Alexander
Date: Nov 6, 2003 2:36AM


Hi folks,

Just a quickie regarding the use of the label element in conjunction
with the input element, in particular, the results of containing the
latter within the former.

I note that at the following advice is given on the W3C's wai-ig list at
http://lists.w3.org/Archives/Public/w3c-wai-ig/2002AprJun/0131.html

> Jim Thatcher at <EMAIL REMOVED> wrote:
> If you use LABEL as a container for the INPUT element as well
> as the text, then screen readers will ignore it. So don't do
> that.

And yet contradictory advice is given at
http://www.accessifyforum.com/viewtopic.php?t=100 and
http://lists.w3.org/Archives/Public/w3c-wai-ig/2002JanMar/1227.html (and
elsewhere, but I don't want to weigh you down with URLs). These suggest
the label element can (should?) enclose the input element.

Any comments on which is the preferred approach and why?

Cheers,
Dey


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