3.3.1 Error Identification
Level A Since WCAG 2.0 How it is checked: Manual test
In plain language
When input is wrong, point out which field is wrong and describe the error in text, not just with a red outline.
Who is affected
- Blind people using screen readers
- People with cognitive disabilities
- People with colour blindness
Examples
Fails
After clicking submit, the invalid field gets a red border, with no error message at all.
Passes
<input id="id-number" aria-invalid="true" aria-describedby="id-number-error">
<p id="id-number-error">ID number must be 12 digits.</p>How to fix
- Show a text error message next to the field; link it with aria-describedby.
- Set aria-invalid="true"; move focus to the first invalid field or to an error summary.
How to test it yourself
- Enter wrong data on purpose and submit the form: is the error stated clearly in text and read out by a screen reader?
What WCAG.win checks
Automated tools cannot decide this criterion. WCAG.win reports list it under "What a person needs to check" with the test steps above.
W3C documentation: Understanding Success Criterion 3.3.1: Error Identification