How to fix: form fields without labels
WCAG 2.2 success criterion 1.3.1, 4.1.2 (level A)
Why it matters
Screen reader users do not know what to type in the field.
How to fix
Connect a visible <label> to every input with for/id, or wrap the input in the label.
<label for="email">Email</label>
<input id="email" type="email" autocomplete="email">
Test it yourself
- Click on the label text: the cursor should jump into the field.
- With a screen reader, tab into each field and listen for its name.
Common mistakes
- Using placeholder text instead of a label – it disappears when you type.
- A for attribute that does not match the input id.
- Hiding labels with display:none, which also hides them from screen readers.
Check your own site
Find this and other problems on your website in 30 seconds, free.