autocomplete attribute must be used correctly
How to fix the autocomplete-valid accessibility rule. Forms.
What this rule checks
Ensure the autocomplete attribute is correct and suitable for the form field
Who is affected
The autocomplete value is wrong, so browsers and assistive tools can't auto-fill this field (which helps people with memory or motor impairments).
How to fix it
Use a standard token, e.g. autocomplete="email", "given-name", "tel".
WCAG success criteria
When this rule fails, the page fails:
- 1.3.5 Identify Input Purpose (Level AA, WCAG 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 autocomplete-valid (the makers of axe-core, the engine our scanner uses)
- All fix guides