label
<label> . . . </label>
Used to attach information to controls. Each
label
element is associated with exactly one form
control. The label
element may contain the form
control, or it may use the for
attribute to
identify the control by its id
value.
Flow content, phrasing content, interactive content, form-associated element, palpable content
Where phrasing content is expected
Phrasing content, but may not contain labelable elements
unless it is the element’s labeled control and no descendent
label
elements.
Required/Required
HTML5 Global Attributes
for="
text
"
Explicitly associates the label
with the
control by matching the value of the for
attribute with the value of the id
attribute
within the control element.
form="
id of the form
owner
"
Explicitly associates the label
element
with its associated form (its form
owner). With this method, the label does not need to
be the child of the applicable form
element.