Identify Input Purpose
Form fields that collect information about the user — name, email, address, phone, card details — declare what they are for in the markup, using the HTML autocomplete attribute.
Why it matters
The autocomplete token lets browsers and assistive technology fill the field correctly and present it with a familiar icon or label. For someone with a cognitive or motor disability, not having to retype an address on every site is the difference between finishing a form and abandoning it.
Automatically detected
axe-core checks that any autocomplete value present is a valid token. A field with no autocomplete attribute at all is not flagged, because axe cannot know the field collects personal data — that part is a judgement call.
Related axe-core rules: autocomplete-valid
Fails
<label for="em">Email</label>
<input id="em" type="text" autocomplete="e-mail">The attribute is present but the token is misspelt. Browsers ignore it, so the field is never recognised as an email address.
Passes
<label for="em">Email</label>
<input id="em" type="email" autocomplete="email">A valid autocomplete token and a matching input type: browsers fill it, and assistive technology can identify the field's purpose.
Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.
Scan your site free