W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2002

Re: LABEL and/or TITLE In Forms?

From: Charles McCathieNevile <charles@w3.org>
Date: Thu, 14 Mar 2002 08:22:16 -0500 (EST)
To: David Woolley <david@djwhome.demon.co.uk>
cc: <w3c-wai-ig@w3.org>
Message-ID: <Pine.LNX.4.30.0203140800100.32523-100000@tux.w3.org>
I would remodify David's example to do something stupid, but designed to cope
with implementations that are widely used but do dumb things and don't do
really obvious and simple things.

  <label for="colour">What is your favourite color?
  <input type="text" name="colour" id="colour" />
  </label>

chaals

On Thu, 14 Mar 2002, David Woolley wrote:

  > Option 1:
  > <LABEL for="color">What is your favorite color?</LABEL>
  > <INPUT type="text" name="color"  id="color">

  Option 1a (subject to checking for broken browsers - there are rumours
  that some get this wrong, although, as the default handling for unknown
  elements works perfectly well, there is really no excuse):

  <LABEL>What is your favourite color?
  <INPUT type="text" name="colour" id="colour">
  </LABEL>


-- 
Charles McCathieNevile    http://www.w3.org/People/Charles  phone: +61 409 134 136
W3C Web Accessibility Initiative     http://www.w3.org/WAI  fax: +33 4 92 38 78 22
Location: 21 Mitchell street FOOTSCRAY Vic 3011, Australia
(or W3C INRIA, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France)
Received on Thursday, 14 March 2002 08:22:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:01 GMT