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

Re: a single label where multiple fields follow

From: Terrence Wood <tdw@funkive.com>
Date: Fri, 22 Sep 2006 02:17:37 +1200
Message-Id: <3B6A254C-F5AB-468D-A35E-5653A417E19E@funkive.com>
Cc: Antony Tennant <antonytennant@yahoo.co.uk>
To: w3c-wai-ig@w3.org


On 22/09/2006, at 12:43 AM, Antony Tennant wrote:
> I would like to get some opinions on the best practise for  
> assigning <label for""> to inputs where there are multiple inputs

Labels relate to one control only, however, a control can have  
multiple labels.

Group related controls together using fieldset and legend.

Telephone Example (inputs omitted for brevity)

<fieldset><legend>Telephone number</legend>
<label for="countrycode">...
<label for="areacode">...
<label for="number">...
</fieldset>



kind regards
Terrence Wood.
Received on Thursday, 21 September 2006 14:18:01 GMT

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