The autocomplete attribute must use a valid value

When a form field has an autocomplete attribute, its value must be a token from the HTML standard that fits the field type, so browsers and assistive tools know which personal data the field expects.

Rule IDautocomplete-valid
ImpactSerious
Success criterion 1.3.5 Identify Input Purpose · AA
StandardsWCAG 2.1 · WCAG 2.2 · EN 301 549
Readabler fix Fixed automatically

Example

Before
<label for="ship-email">Email</label>
<input type="email" id="ship-email" name="email" autocomplete="e-mail">

The browser does not recognise “e-mail”, so it offers no saved address to fill in.

After
<label for="ship-email">Email</label>
<input type="email" id="ship-email" name="email" autocomplete="email">

The browser offers the user's saved email address with one tap.

Why it matters

WCAG 1.3.5 asks that fields collecting information about the user identify their purpose in code. The autocomplete attribute does exactly that, but only with the exact tokens defined in HTML, such as email, given-name or postal-code.

People with cognitive or memory impairments, dyslexia or motor disabilities benefit most: autofill spares them from recalling and typing addresses and card numbers, which can be slow, painful or error-prone. Some assistive tools can also show familiar icons next to fields whose purpose is known. A typo like e-mail, an invented value or a token that does not match the input type silently turns all of this off.

How to fix it

Use the exact token from the HTML list. Common ones:

<input type="text" autocomplete="name">
<input type="text" autocomplete="given-name">
<input type="email" autocomplete="email">
<input type="tel" autocomplete="tel">
<input type="text" autocomplete="street-address">
<input type="text" autocomplete="postal-code">

Match the token to the input type. autocomplete="email" on a type="number" field is reported, because a number field cannot hold an email address. Change either the type or the token.

Order combined tokens correctly. Optional parts come first, in this order: a section-* name, then shipping or billing, then home, work or mobile (for contact fields), then the field name:

<input type="tel" autocomplete="shipping mobile tel">

Turning autofill off. Use autocomplete="off", not made-up values such as nope or no-fill. Only do this for fields that are not about the user, such as a one-time code for someone else.

Fields not about the user (a gift recipient's message, a search box) do not need a purpose token; just avoid invalid values.

Checklist

  1. Use only tokens from the HTML autocomplete list.
  2. Make sure the token fits the input type.
  3. Put section, shipping or billing before the field name.
  4. Use off instead of invented values to disable autofill.

How the check works

The check looks at <input>, <select> and <textarea> elements with a non-empty autocomplete attribute, skipping disabled, read-only and button-type fields. It passes when the value is on, off or a valid, correctly ordered combination of tokens that suits the field type. It fails for unknown tokens, wrong order, or a token the input type cannot hold. Whether the token matches what the field really asks for needs a manual check.

Resources

Updated October 27, 2026