[whatwg] required attribute in label

Chris Cressman chris at chriscressman.com
Sat Aug 21 06:26:34 PDT 2010


> Why not make "required" an acceptable attribute for the label element?

The class or title attribute can solve your problem:

<label class="required">
label.required:after {content:"*"}

<label title="required">
label[title~="required"]:after {content:"*"}



More information about the whatwg mailing list