HTML <label> Element Reference

The HTML <label> element provides an accessible caption for a form control.

<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">

Related references

Description

The HTML <label> element provides an accessible caption for a form control.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <label> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies