WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Adding a label to search box

for

From: Emma Duke-Williams
Date: Apr 12, 2006 3:10AM


Many thanks for all the answers!

Peter: Putting in the label for "s" was one of the things that I
tried, but though that did put the label in, it also generated an
extra error from WAVE - one telling me that I'd not got a label for a
form, and one telling me that I'd got a label that wasn't needed...

Your idea of putting "Go" in the button though is good, cos then it
doesn't look silly having search before & after the box, which is what
I didn't really want.

Redazione -
I'll have a look at your code - since you did get it working with
WordPress -was it WP 2.0.2 - or another one?

Kynn,
I can see the point of not wanting to hide labels (and I've no idea
what putting something off the screen would do to a PDA, as it has a
few problems anyway - that's another task though! However, when
there's only one box to fill in, and, to be honest, one I'd expect
very few people to even bother using, if other people use my blog as I
use theirs! [Many blogs don't have a search box, I really put that one
in for me to find old posts that I'd remember making, but the
categories didn't help!]

Another query ...
http://www.spyjacked.co.uk/forum/ has got some text pre-filled in -
using the value tag. Would that work? Then I could have "Search
Site... " in there (which is what I wanted the label to say), but it
wouldn't look cluttered - and, as I say, I'd be surprised if *anyone*
uses the search box anyway.

Emma