The <label>
element
Contains a caption or label to indicate to the user what a form control means. This element makes the association between the label and the control explicit.
Full list of attributes
All the usual HTML global attributes are available
for
- The ID of the form control element which this label is meant to apply to. If not given, then the first such element inside the
<label>
is assumed to be the right one. form
- The name of the form this label is part of.