W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2003

Re: label tag and multiple associations

From: James Craig <work@cookiecrook.com>
Date: Wed, 26 Nov 2003 15:53:47 -0600
Message-ID: <3FC520EB.6030101@cookiecrook.com>
To: Jim Thatcher <jim@jimthatcher.com>
Cc: Kieran_M_O'Brien@national.com.au, w3c-wai-ig@w3.org

A fieldset may be what he's looking for, too.

   <legend>Phone Number:</legend>
   <input type="text" name="areacode" title="area code" />
   <input type="text" name="prefix" title="prefix" />
   <input type="text" name="number" title="number" />

James Craig

Jim Thatcher wrote:

> <p>Phone Number: 
> <INPUT type="text" name="areacode" title="area code">
> <INPUT type="text" name="prefix"   title="prefix" >
> <INPUT type="text" name="number"   title="number"></p>
> Is how I would do it. See
> http://jimthatcher.com/webcourse8.htm#Webcourse8.6. 
> Jim
> Accessibility, What Not to do: http://jimthatcher.com/whatnot.htm.
> Web Accessibility Tutorial: http://jimthatcher.com/webcourse1.htm.
> -----Original Message-----
> From: Kieran M. O'Brien
> Greetings,
> How do I associate more than one input field with one label ?? For example,
> let's say I have a Telephone number field but have two boxes, i.e. one for
> the area code and one for the actual number. Ignoring the fact that I could
> have an area code label, is there a way of associating these two input
> boxes with the one label ?? Please don't question why I have done it this
> way, or that I should redo it this way. I'm not interested in workarounds.
> Just wondering if it is possible. Then I can go back to them to tell them
> that they have to change it. Thanks in advance.
> Regards,
> Kieran
Received on Wednesday, 26 November 2003 16:54:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:26 UTC