Re: label tag and multiple associations

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 UTC