labelForm field has no label
An input without a label is announced as just “edit text”, and a placeholder disappears as soon as you type. Connect a visible <label> to every field with for and id.
Who it hurts
Screen reader users, voice control users, people with memory or attention difficulties, and anyone who forgets what a field was for.
Newsletter boxes, search fields and checkout forms often rely on placeholders alone. A visible label also makes the click target bigger.
How to fix it
Pick your stack. Review every change before you ship it.
Before
<input type="email" placeholder="Your email">After
<label for="nl-email">Email</label>
<input id="nl-email" type="email" autocomplete="email">Check it by hand too
Click each label: it should move focus into its field. Every field should have a visible label, not just a placeholder.
Automated checks find a large share of accessibility problems, but not all of them. Passing this check does not on its own make a page compliant.
WCAG reference
- 1.3.1 Info and Relationships (Level A). Understanding 1.3.1
- 4.1.2 Name, Role, Value (Level A). Understanding 4.1.2