<label>

noun

say it: “LAY-bul” /ˈleɪbəl/

The HTML element that holds the words describing a form field, so people can click them to reach the field and screen readers can read them aloud.

What is <label>?

<label> — The element that provides a caption for a form control.

<label for="phone">Phone number</label>
<input id="phone" name="phone" type="tel">

In a sentence

  • “The screen reader said "Email, edit text" because the box had a label.”
  • “I wrapped the words Your name in a label, and now clicking them puts the cursor in the box.”

Level: Apprentice · More HTML terms at this level

Updated