<label>
HTML <label> Element Reference
The HTML <label> element provides an accessible caption for a form control.
Categories
- Forms
Tag omission
Consult the HTML Living Standard for the precise tag-omission rules.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical label element example.
<label for="email">Email address</label>
<input id="email" name="email" type="email">