axe-core rule: autocomplete-valid

Form fields have invalid autocomplete attributes

What it is

An autocomplete attribute uses a value that is not in the HTML specification, so browsers and assistive technology cannot use it to identify the field purpose or autofill it.

Who it blocks

People with motor or cognitive disabilities who rely on browser autofill to complete forms, and password-manager users.

How to fix it

Use valid autocomplete tokens from the HTML spec, such as name, email, street-address, postal-code, cc-number, or tel.

Example fix

<!-- Before -->
<input type="text" autocomplete="zipcode">

<!-- After -->
<input type="text" autocomplete="postal-code" name="zip">

This is one of the barrier types BarrierScan checks for on every scan. Request a free accessibility scan to see whether it appears on your site, alongside the rest of the automated findings.