Re: a single label where multiple fields follow

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 UTC