WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: "adjacent" <label> elements

for

From: Kevin Spruill
Date: Apr 2, 2002 2:46PM


Good question Leo, without testing it directly I can't say for sure one
way or the other. However, I'd imagine that the newer AT agents (which
handle forms and elements much better in general) should correctly
associate "adjacent" labels with the appropriate element (your label
uses the for attribute, and it's placed in the logical flow/order of the
form). I'd be more concerned about placing the form elements, and labels
in separate table data cells... also not sure why the form tags can't
encapsulate all of the forms elements.

Any thoughts from others on this?


>Well, on one of my pages the form element's label is adjacent to it
>(directly above), but in this instance the <form> tags cannot
>encapsulate both the <label> and the form element:

>Is a screen reader not going to associate the label with the form
>element in this instance?



Kevin Spruill
National Library of Medicine
OCCS
<EMAIL REMOVED>
(301) 402-9708
(301) 402-0367 (fax)
www.nlm.nih.gov


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