Form elements must have labels
How to fix the label accessibility rule. Forms.
What this rule checks
Ensure every form element has a label
Who is affected
This form field has no label, so screen-reader users hear "edit text" with no idea what to type. Placeholder text is not a label: it disappears and isn't reliably announced.
How to fix it
Connect a visible <label> to the field with for/id (or wrap the field in the label).
Example
Before
<input type="email" placeholder="Email">After
<label for="email">Email</label>
<input type="email" id="email">WCAG success criteria
When this rule fails, the page fails:
- 4.1.2 Name, Role, Value (Level A, WCAG 2.0, 2.1, 2.2)
Find it on your own page
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.
More detail
- Deque University’s reference for label (the makers of axe-core, the engine our scanner uses)
- All fix guides