WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Adding a label to search box

for

From: Jim Thatcher
Date: Apr 11, 2006 1:10PM


Hi Emma,

This is a perfect example of where the title attribute on the input element
is needed, when information is available to sighted users, and not available
to a screen reader user, commonly when the 2-dimensional view provides
context - or when the prompting information is spread out.

Use title="search text" on the input element.

It is a no-brainer - no need to hide text and the title is supported by
screen readers.

Jim

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