WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: proper use of labels

for

From: Terrence Wood
Date: Jun 13, 2005 5:02PM


'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
>
>