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:

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