[whatwg] Label question

Menno van Slooten menno at backbase.com
Tue Jun 29 01:14:36 PDT 2004


It it's *allowed*, I guess. But it's not intended.

Quote:


for = idref [CS]
This attribute explicitly associates the label being defined with 
another control. When present, the value of this attribute must be the 
same as the value of the id attribute of *some other control* in the 
same document.
http://www.w3.org/TR/html401/interact/forms.html#h-17.9.1


Label elements are *not* controls.
http://www.w3.org/TR/html401/interact/forms.html#h-17.2.1


Menno



Anne van Kesteren (fora) wrote:
>> Not sure if this is an issue in the Web Forms 2.0 Working Draft, but
>> is something like this allowed?
>>
>> <label for="dat" id="dit">dat</label><label for="dit"
>> id="dat">dit</label>
> 
> 
> Why not?



More information about the whatwg mailing list