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.

<fieldset>
   <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" />
</fieldset>

Cheers,
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 GMT

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