# Autofill and identifying input purpose

> Browsers could fill in details people have typed before, but many forms do not let them.

Area: Forms. Evidence behind the answer: Settled. Last checked November 12, 2026.
Page: https://uxreference.com/forms/autofill

## The answer

Mark each field with what it is for, and never block autofill, pasting or password managers.

- **Settled, WCAG AA.** Mark each personal-details field with the standard autocomplete token for what it holds. (https://uxreference.com/forms/autofill#rule-1)
- **Settled, WCAG AA.** Don’t block pasting, password managers or autofill on sign-in fields. (https://uxreference.com/forms/autofill#rule-2)

## The problem

Browsers and password managers can fill in what people have typed before, but only if fields say what they are for and nothing blocks the filling.

## How to decide

None. The sources do not describe more than one correct practice that depends on context.

## Every rule

Each rule has a grade: Settled (required by WCAG AA or law, or replicated research), Strong, Moderate, Weak, or Unsettled (use the stated default until the evidence settles).

#### Rule 1. Settled, WCAG AA

Mark each field that collects information about the person with the standard token for its purpose.

- Applies when: The person is entering their own details.
- Based on: Standard or law
- Depends on: Whose details they enter
- Principle: Work for everyone

Why: WCAG 2.2 level AA (1.3.5). Reopened and checked in the pilot; the token table in the HTML standard was read directly.

Sources: wcag22-1.3.5; [H98: Using HTML autocomplete attributes](https://www.w3.org/WAI/WCAG22/Techniques/html/H98); [HTML Standard, autofill field names for telephone numbers](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill); [HTML attribute: autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)

Link: https://uxreference.com/forms/autofill#rule-1

#### Rule 2. Settled, WCAG AA

Do not block pasting, password managers or autofill in sign-in and other authentication fields.

- Applies when: The field is part of authentication.
- Based on: Standard or law
- Principle: Work for everyone

Why: WCAG 2.2 level AA (3.3.8): blocking paste generally fails unless another method is offered. NIST's 2025 standard says the same. Both reopened and checked.

Sources: [Understanding SC 3.3.8: Accessible Authentication (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html); [NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)](https://pages.nist.gov/800-63-4/sp800-63b.html)

Link: https://uxreference.com/forms/autofill#rule-2

#### Rule 3. Settled, WCAG AA

Do not ask again for something the person already gave earlier in the same process. Fill it in for them or let them pick it.

- Applies when: Information was given earlier in the same process.
- Based on: Standard or law
- Principle: Recognition over recall

Why: WCAG 2.2 level A (3.3.7). Browser autofill does not satisfy it; the site must supply the value. Reopened and checked.

Sources: [Understanding SC 3.3.7 Redundant Entry](https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry.html)

Link: https://uxreference.com/forms/autofill#rule-3

#### Rule 4. Moderate

Leave autofill on. Turn it off only for values that are used once, such as a one-time code.

- Applies when: Always.
- Based on: Convention
- Principle: Let practiced people go faster

Why: The HTML standard, MDN, Apple and Google agree, and MDN and Apple note browsers ignore the off setting on sign-in fields anyway. Rated 3.

Sources: [HTML Living Standard, 4.10.19.7 Autofill (autocomplete attribute, off/on, one-time-code)](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill); [Turning off form autocompletion (MDN practical implementation guide)](https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides/Turning_off_form_autocompletion); [Improving AutoFill experiences for your forms (Safari developer documentation)](https://developer.apple.com/documentation/safari-developer-tools/autofill.md); [Autofill (Learn Forms)](https://web.dev/learn/forms/autofill)

Link: https://uxreference.com/forms/autofill#rule-4

#### Rule 5. Moderate

Use one field per value that browsers store as one value, such as a whole phone number or card number.

- Applies when: Always.
- Based on: Convention
- Principle: Let practiced people go faster

Why: Browser vendors' guidance; no independent test. Rated 3.

Sources: webdev-2026-address-form-codelab; chrome-2026-autofill-address-form; [HTML attribute: autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)

Link: https://uxreference.com/forms/autofill#rule-5

#### Rule 6. Moderate

Mark a field for a code sent by text message with the one-time-code token so the device can offer the code.

- Applies when: The field takes a one-time code.
- Based on: Convention
- Principle: Let practiced people go faster

Why: Google's guidance and the HTML standard. Rated 3.

Sources: [SMS OTP form best practices](https://web.dev/articles/sms-otp-form); [HTML Living Standard, 4.10.19.7 Autofill (autocomplete attribute, off/on, one-time-code)](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill)

Link: https://uxreference.com/forms/autofill#rule-6

#### Rule 7. Weak

Do not autofill fields the person cannot see, and keep each filled field's label visible so the values can be checked.

- Applies when: Always.
- Based on: Reasoned, not tested
- Principle: Keep people in control

Why: A 2017 proof of concept showed a browser filling hidden fields; NN/g notes wrong autofill is hard to spot without labels. My inference from a demo and an essay, so 2.

Sources: [Browser autofill phishing (proof-of-concept demo repository) and news coverage](https://github.com/anttiviljami/browser-autofill-phishing); [Placeholders in Form Fields Are Harmful](https://www.nngroup.com/articles/form-design-placeholders/)

Link: https://uxreference.com/forms/autofill#rule-7

## Accessibility requirements

- WCAG 2.2, 1.3.5 Identify Input Purpose (AA). (https://www.w3.org/WAI/WCAG22/Understanding/identify-input-purpose.html)
- WCAG 2.2, 3.3.7 Redundant Entry (A). (https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry.html)
- WCAG 2.2, 3.3.8 Accessible Authentication (Minimum) (AA). (https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html)

## Common mistakes

- Turning autofill off on address or payment forms.
- Made-up token values, which fail 1.3.5 (MDN, WCAG technique H98).
- Blocking paste into password or code fields ([rule 2](https://uxreference.com/forms/autofill#rule-2)).

## Still open

- How much autofill helps. Chrome's own telemetry links it to about 75% less abandonment and 35% less time, and one analytics vendor reports higher completion across 215 forms; both are correlations, and the vendor saw about one form in ten do worse.
- No study of autofill accuracy or of errors from wrongly filled fields was found.
- Baymard notes many people do not use autofill and that it fails for addresses not yet saved.

## Related problems

- [Phone number input](https://uxreference.com/forms/phone): Ask only if you will use it, take it in one field, and accept the number however it is written.
- [Postal address](https://uxreference.com/forms/address): Offer an address lookup where the data is reliable, and always let people type the address by hand.
- [Name](https://uxreference.com/forms/name): Accept names as people write them, in any script, and do not require exactly two parts.
- [Payment card](https://uxreference.com/forms/payment-card): Take the card number in one field, with or without spaces, and work out the card type yourself.
- [One-time codes](https://uxreference.com/forms/one-time-code): Use one field that can be pasted into and filled automatically, and do not submit by itself.
- [Password creation](https://uxreference.com/forms/password-create): Require length, not character mixes, allow password managers, and offer a way to show the password.
- [Log in](https://uxreference.com/accounts/log-in): Never block paste or password managers, and slow repeated attempts instead of locking people out.

## Sources

- wcag22-1.3.5. n.d..
- [H98: Using HTML autocomplete attributes](https://www.w3.org/WAI/WCAG22/Techniques/html/H98). W3C WAI, n.d., normative-adjacent technique (sufficient technique for SC 1.3.5).
- [HTML Standard, autofill field names for telephone numbers](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill). WHATWG, n.d., normative standard (living).
- [HTML attribute: autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete). MDN Web Docs (Mozilla contributors), n.d., component documentation.
- [Understanding SC 3.3.8: Accessible Authentication (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html). W3C WAI, 2023, normative standard, informative Understanding document.
- [NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)](https://pages.nist.gov/800-63-4/sp800-63b.html). NIST, 2025, normative standard.
- [Understanding SC 3.3.7 Redundant Entry](https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry.html). W3C WAI, n.d., normative standard (Understanding document).
- [HTML Living Standard, 4.10.19.7 Autofill (autocomplete attribute, off/on, one-time-code)](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill). WHATWG, n.d., normative standard.
- [Turning off form autocompletion (MDN practical implementation guide)](https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides/Turning_off_form_autocompletion). Mozilla (MDN), n.d., component documentation / implementation guide.
- [Improving AutoFill experiences for your forms (Safari developer documentation)](https://developer.apple.com/documentation/safari-developer-tools/autofill.md). Apple, 2026, component documentation (reused from the form.autofill gaps record).
- [Autofill (Learn Forms)](https://web.dev/learn/forms/autofill). web.dev (Google), 2021, expert opinion (platform vendor guidance).
- Address form best practices codelab. n.d..
- Build an address form that follows best practice. n.d..
- [SMS OTP form best practices](https://web.dev/articles/sms-otp-form). web.dev (Google), 2020, expert opinion (platform vendor guidance).
- [Browser autofill phishing (proof-of-concept demo repository) and news coverage](https://github.com/anttiviljami/browser-autofill-phishing). Viljami Kuosmanen (demo); The Hacker News (coverage), 2017, proof-of-concept demonstration; secondary news article (thehackernews.com/2017/01/browser-autofill-phishing.html) also opened.
- [Placeholders in Form Fields Are Harmful](https://www.nngroup.com/articles/form-design-placeholders/). Katie Sherwin, Nielsen Norman Group, 2014, practitioner article citing unspecified user testing and eye-tracking; mostly reasoned from observed problems.

---
From Solved Problems in UX by Athen Pellicci, an evidence-graded reference of web interface problems. CC BY 4.0. https://uxreference.com/
