[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.


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.

Label elements are *not* controls.


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