E-mail List Archives
Re: Adding a label to search box
From: Christian Heilmann
Date: Apr 12, 2006 2:40AM
- Next message: Joshue O Connor: "Re: Adding a label to search box"
- Previous message: Christian Heilmann: "Re: How Do I Display The Word Visited On A Link"
- Next message in Thread: Joshue O Connor: "Re: Adding a label to search box"
- Previous message in Thread: Jon Gunderson: "Re: Adding a label to search box"
- View all messages in this Thread
> >> 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.
> But can that be relied on? Isn't it true, that many screen readers (well JAWS anyway), may not
> read out the contents of the title attribute at all (depending on the users verbosity settings).
> Isn't title supposed to be for *additional* information?
> I would use it myself BTW , but not in isolation and certainly not sans <label>, for explicit field/button association.
You're right, the title solution is just not safe. The label should do
two things: It should explain what the connected form field is and it
should connect the two. Titles can and are in a lot of cases turned
off, you cannot rely on them. Another cool benefit of labels is that
they focus the element the label is associated with when you click
them. This makes them dead handy with checkboxes, as users get a
larger area to click on. What is so wrong about writing next to a form
element what you are supposed to enter in it?
- Next message: Joshue O Connor: "Re: Adding a label to search box"
- Previous message: Christian Heilmann: "Re: How Do I Display The Word Visited On A Link"
- Next message in Thread: Joshue O Connor: "Re: Adding a label to search box"
- Previous message in Thread: Jon Gunderson: "Re: Adding a label to search box"
- View all messages in this Thread