HTML and CSS Reference
In-Depth Information
<label>
Function Creates a label for a form element
accesskey , class , dir , for , id , lang , onBlur ,
onClick , onDblClick , onFocus , onKeyDown ,
onKeyPress , onKeyUp , onMouseDown , onMouseMove ,
onMouseOut , onMouseOver , onMouseUp , style ,
title
Attributes
</label> ; never omitted
End tag
Contains
label_contents
Used in
form_content
9.10.1.1. Implicit and explicit associations
One or more labels get associated with a form control in one of two ways:
implicitly, by including the form control as contents of the label tag, or
explicitly, by naming the ID of the target form control in the <label> tag's
for attribute.
For example, in XHTML:
Search WWH ::




Custom Search