liveBook · Manning

Autocomplete token

As explained in Architecting Accessibility

An autocomplete token is a standardized value of the HTML autocomplete attribute that identifies the kind or context of information requested by a form field.

Autocomplete tokens tell browsers what information a form field requests, helping people complete forms efficiently. Use the token that matches the field’s purpose, such as “username,” “address-line1,” or “cc-exp.” section 6.1.8

Tokens can also identify a context, such as billing or shipping, or a named section that separates groups of fields. These are browser hints, not commands: autofill behavior depends on the browser and user settings, and the attribute does not require information to be stored. section 6.1.8

<input autocomplete="shipping postal-code">
<input autocomplete="billing postal-code"> 

The tokens distinguish postal-code fields for shipping and billing. section 6.1.8

How Architecting Accessibility covers it

How deep it goes
Explains token types and section contexts, but leaves autofill behavior to browser implementations.
Examples
Uses username, address, and credit-card tokens, plus billing and shipping postal-code fields.
What you can do after
Apply HTML autocomplete attributes to identify field purposes and distinguish autofill sections.
How it connects
Connects autocomplete tokens to browser autofill and WCAG Success Criterion 1.3.5.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.