Skip to content
HTML.ONE
Home HTML Elements

HTML <label> Element

Associates a textual label with a form control using for/id or nesting.

Example

<label for="email">Email</label><input id="email" type="email" name="email">

Further reference

HTML Living Standard

Live preview