[whatwg] required attribute in label

Brenton Strine whatwg at gmail.com
Sat Aug 21 09:18:32 PDT 2010


> <label class="required">

and

> <input id="name1" type="text" required><span> </span>

are effective, but then again this would be too:

...</label>*

It just seems a shame that we have this neat attribute that indicates
required controls, but we can't actually use it to change the
presentation adding additional code.

Brenton



More information about the whatwg mailing list