WCAG 3.3.1 Error Identification
This page demonstrates how to properly identify and communicate form errors to users, including those using assistive technologies.
- Goal: Users know an error exists and what is wrong.
- What to do: Provide descriptive notification of errors.
- Why it's important: Flagging errors helps people with reduced sight and cognitive disabilities resolve them.
Poor Implementation Example
Registration Form - Poor Error Handling
Why this fails:
- Error messages are always visible
- No programmatic association between errors and fields
- No error summary
- Unclear error messages
- No ARIA attributes for screen readers
Good Implementation Example
Registration Form - Proper Error Handling
Please correct the following errors:
Why this works:
- Clear, specific error messages
- Errors are associated with form controls using aria-describedby
- Error summary for screen readers
- Real-time validation feedback
- Visual and programmatic indication of errors
- Clear instructions for correction
Real-time Validation Example
Username Availability Check
Enter a username (minimum 3 characters)
Best Practices Summary
- Provide clear, specific error messages
- Associate error messages with form controls
- Use appropriate ARIA attributes
- Provide error summary for multiple errors
- Include suggestions for correction
- Use both visual and programmatic error indicators
Skip to main content