WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Adding a label to search box

for

From: Jim Thatcher
Date: Apr 13, 2006 9:40AM


> Ah, well, it still is no replacement for a label though.

It certainly IS a replacement when there is no on-screen text to use with
the label element. It trumps adding text and hacking it off screen - in my
opinion.

The label should always be used when on screen prompting text is available
and contiguous. When it is not available or not contiguous, use the title
attribute to specify the prompt for the control.

Jim

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