- Success Criterion 1.3.5
- Conformance level AA
Field Missing Both the Right Input Type and Autocomplete Token
1.3.5 — Identify Input Purpose
Scenario
Setting
A grocery delivery app's shopping cart
What’s wrong
type misuse combined with missing tokens (e.g., type="text" for email with no autocomplete="email") leaving no machine-readable purpose.
Example
<label for="guest-email">Email for order updates</label>
<input id="guest-email" name="guest_email" type="text"> Why it matters
A shopper checking out as a guest gets no email keyboard on mobile and no autofill suggestion, making a quick checkout slower and more error-prone.
How to test
Inspect a field using type="text" for something like email with no autocomplete="email" token: without either signal, purpose can't be determined programmatically.
How to fix
Pair the correct input type with the matching autocomplete token so both the keyboard and autofill behave correctly.
<label for="guest-email">Email for order updates</label>
<input id="guest-email" name="guest_email" type="email" autocomplete="email"> Outcome
A guest shopper now gets the email keyboard on mobile and an autofill suggestion right at checkout.
Who is affected
Mobile users who lose the email-optimized keyboard, plus anyone relying on autofill, must type the address manually with the generic keyboard.
Learn more
- Understanding Understanding document (opens in a new tab)
Related scenarios
- Autocomplete Attribute Set to the Wrong Value for the Field
- Personal-Data Field With No Autocomplete Attribute at All
- Autocomplete Deliberately Disabled on a Personal-Data Field
- Autocomplete Token Placed on the Wrong HTML Element
- Custom Form Widget That Drops the Native Autocomplete Behavior
- Autocomplete Section Token Used Incorrectly, Breaking Its Value