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

Re: [Techs] CSS and invisible labels for forms

From: Gez Lemon <gl@juicystudio.com>
Date: Wed, 15 Sep 2004 20:49:52 +0100
Message-ID: <005201c49b5d$2b4baca0$1900a8c0@juicy.com>
To: <w3c-wai-gl@w3.org>
I was hoping to discuss this at the techniques teleconference today, but we ran out of time and the item has been moved to next week's techniques teleconference. There's a good chance that I won't be able to make next week, so would like to continue the discussion here to be considered at next week's meeting.

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.

Using the title attribute instead of a label takes away the semantics of binding a label to a form control. Going the CSS route encourages techniques such as switchable style sheets to suit visitor's preferences, and gives the author more flexibility in terms of maintainability should they decide to present the labels differently in the future.

Best regards,


Supplement your vitamins 
Web: http://www.juicystudio.com
Keeping developers informed!
IWA/HWG Member
Received on Wednesday, 15 September 2004 19:47:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 16 January 2018 15:33:50 UTC