WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: proper use of labels

for

From: Terrence Wood
Date: Jun 15, 2005 5:47PM


On 16 Jun 2005, at 5:06 AM, Jim Thatcher wrote:
> Use of a title on the select menu is, from my testing, equivalent to
> the
> process wrapping an invisible image in the label element to pick up the
> alt-text.

Yes, thats the point. Here's what the W3c have to say about the title
attribute:
"This attribute offers advisory information about the element for which
it is set"
(see: http://www.w3.org/TR/html401/struct/global.html#adef-title)

Wrapping a control element in a label is legitimate use of the element
(see: http://www.w3.org/TR/html401/interact/forms.html#h-17.9.1), and
has not caused any problems for screen readers as AFAIK. Oh, and I have
personally tested it in JAWS.

My apologies to anyone else offended by my previous comment, I was
feeling rather flippant at the time, I did not mean anyone using that
invisible image technique is stupid (unlike Jim's reply aimed
specifically and personally at me with the intent of being offensive),
just the technique itself was stupid given that HTML already provides
the tools to achieve that result.

And Jim, since we're getting personal, I think it's rather poor form to
dish out unsubstantiated recommendations simply in order to disagree
with someone.


regards
Terrence Wood.