W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > July to September 2004

Re: [Techs] CSS and invisible labels for forms

From: James Craig <wai-wg@cookiecrook.com>
Date: Wed, 15 Sep 2004 16:37:40 -0500
Message-ID: <4148B624.4020806@cookiecrook.com>
To: w3c-wai-gl@w3.org

Gez Lemon wrote:

> To recap, the proposed techniques are:
> 
> 1: Hide the label with CSS using display: none
> 2: Hide the label with CSS by moving it off the visual display
> 3: Using a transparent single pixel image
> 4: Using the title attribute on the form control
> 
> As the techniques should promote best practice, I'm in favour of either technique 1 or technique 2. Techniques 3 and 4 seem like hacks to me.

I'd have to cast my vote for #2 because #1 is known to cause problems in 
some screen readers. I agree with Gez that #3 is a hack. I think #4 is 
acceptable, but obviously not as good a choice as a real label.

James

-- 
http://cookiecrook.com/
Received on Wednesday, 15 September 2004 21:37:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:17:58 UTC