WCAG Encyclopedia

1.3.5 · PerceivableLevel AA

Identify Input Purpose

Fields collecting the user’s own information — name, email, address, phone — need to say which is which in the markup, via autocomplete. That is what lets a browser fill them, and what lets assistive tools show familiar icons or wording instead of yours.

Principle
Perceivable
Guideline
1.3
Level
AA
In WCAG since
2.1
Number
1.3.5

Broken, then fixed

The same interface twice: first with the mistake, then with the smallest change that fixes it.

Broken: Nothing tells the browser what these fields are for.

Contact

Correctly labelled, and still unfillable. Someone with a motor or memory impairment retypes their details on every site, every time.

Fixed: Each field declares its purpose from the standard list.

Contact

autocomplete="name" and autocomplete="email". The tokens are a fixed vocabulary, not free text — inventing one silently does nothing.

What changed in the code

The fix as a diff: removed lines are marked with a minus, added lines with a plus.

Markup diff — contact.html
removed: <input id="name" type="text">
added: <input id="name" type="text" autocomplete="name">
removed: <input id="email" type="text">
added: <input id="email" type="email" autocomplete="email">

The input type matters too: type="email" gets the right keyboard on a phone and the right validation everywhere.

How to test

Check your own interface against 1.3.5, one step at a time.

  1. List every form field that asks for information about the person filling it in: name, email, phone, address, date of birth, card details, username.
  2. Inspect each field and read its autocomplete attribute. Check it is there and has the value that matches the field, such as autocomplete="email" or autocomplete="postal-code".
  3. Check each value against the list of input purposes in WCAG, which uses the HTML autofill names. A misspelt or made-up value does nothing, and fails.
  4. Fill the form in with your browser’s autofill. Check each field gets the right information.

Common questions

Does 1.3.5 apply to fields about someone else?

No. It covers fields that ask about the person using the form. A field for a friend’s email address in a referral form does not need to identify its purpose.

Does every form field need an autocomplete attribute?

No. Only fields whose purpose is on the WCAG list of input purposes. A search box or a comment field has no matching purpose, so it needs none.

Is a visible label enough to pass 1.3.5?

No. A label tells people what the field is for. 1.3.5 asks that software can tell too, through the autocomplete attribute, so a browser can fill the field in for people who find typing hard.

Try it yourself

A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.

Try it: tag the fields

How to use this lab

  1. Goal. Tag the Full name, Email and Phone fields so that a browser can fill them in for you.
  2. The controls. The groups under “Full name”, “Email” and “Phone” each give their field No autocomplete, the right token such as autocomplete="name", or an invented one such as autocomplete="full-name". The markup shows each field’s tag, and After autofill, a screen reader says shows what the simulated autofill put in each field.
  3. Try this. The lab starts with no autocomplete on any field. Choose the right token for all three, then change Email to autocomplete="e-mail" and watch autofill leave it empty.
  4. What it means. 1.3.5 passes only when every field has the right token: name, email and tel. With no token or an invented one, the browser can’t tell what a field is for, so people with memory, motor or cognitive difficulties have to type it all themselves. The verdict line under the lab says which.
Full name
Email
Phone

The markup

<input type="text"><input type="email"><input type="tel">

After autofill, a screen reader says

    1.3.5 fails

    Also in guideline 1.3

    Criteria in the same guideline often fail together.