WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: proper use of labels

for

From: Jim Thatcher
Date: Jun 15, 2005 11:06AM


Since you (Terrence Wood ) are calling ideas stupid I think
> wrap the label around the select and add a title to the select?
is a stupid idea.

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. This is what IBM does on its search field. But I do like the title
attribute as it seems less of a hack. Adding a label element wrapped around
the select menu probably confuses a screen reader (I have not tested this
particular example) and should not be used.

Jim

Accessibility Consulting: http://jimthatcher.com/
512-306-0931

-----Original Message-----
From: <EMAIL REMOVED>
[mailto: <EMAIL REMOVED> ] On Behalf Of Terrence Wood
Sent: Monday, June 13, 2005 6:03 PM
To: WebAIM Discussion List
Subject: Re: [WebAIM] proper use of labels

'Non-compliant' is polite, that is the stupidest misuse of HTML I have
seen in a while.

It seems a bit redundant to add an invisible image to get alt text.
Why not wrap the label around the select and add a title to the select?
You then have the additional benefit of an implicit and explicit
relationship between the label and the form control.

regards
Terrence Wood.

On 14 Jun 2005, at 4:40 AM, <EMAIL REMOVED> wrote:

> <label for="qfind"><img src="images/clear.gif" height="1" width="1"
> border="0" alt="Quick Find" /></label>
> <select name="Quickfind" size="1"
> style="font-family:verdana,arial,helvetica,sans-serif; font-size:10px;"
> id="qfind">... options follow.
>
> I always tell them that this is noncompliant, and incorrect (using the
> blank images alt text) vs. using actual text. Am I being overly rigid?
> Or
> am I correct in sticking with the W3C's
> label = text [CS] ?
>
> Thanx in advance...
> ___________________________________________
> Kevin H. Spruill AWA/CNTR/FAA
> FAA Section 508 Technical Support
> 202.385.8059
>
>