Identify Input Purpose Clearly
Learn how to use autocomplete attributes to identify form field purpose. Helps browser fill forms automatically.
What Is It?
Input purpose is identified using autocomplete attributes (name, email, tel, address, etc.). This tells browsers what kind of data goes in each field so it can auto-fill from saved data.
Affected users: Users with motor disabilities, users with cognitive disabilities, aging users, voice control users, all users (faster form filling)
Why It Matters
Users with motor disabilities benefit from auto-fill, reducing keystrokes. Users with cognitive disabilities understand field purpose better. Browsers can help users fill forms faster.
How to Detect This Issue
Test form with browser auto-fill. Check if fields auto-fill correctly. Inspect <input> for autocomplete attribute. Test with screen reader.
Code Examples & Fixes
HTML / CSS
<input type="text" name="name"> <input type="text" name="email"><input type="text" name="name" autocomplete="name"> <input type="email" name="email" autocomplete="email">Use appropriate autocomplete values: name, email, tel, street-address, postal-code, country, etc. Browsers save and auto-fill values.
React / Next.js
<input type="text" placeholder="Full name" /> <input type="password" placeholder="Password" /><input type="text" name="fullname" autoComplete="name" placeholder="Full name" /> <input type="password" name="password" autoComplete="current-password" placeholder="Password" />React: use autoComplete prop (camelCase). autoComplete="current-password" for existing password, "new-password" for registration.
WordPress
Contact form fields without autocomplete attributesForm fields have proper name and autocomplete attributes: name="user-name" autocomplete="name", etc.WordPress form plugins like WPForms support autocomplete. Enable in form builder settings.
Shopify Liquid
Checkout form with generic input fields lacking autocompleteCheckout form with full autocomplete support: email, name, phone, street-address, postal-code, countryShopify automatically handles autocomplete in checkout. Verify custom checkout forms include autocomplete attributes.
Common Mistakes
Not using autocomplete at all on form fields
Using wrong autocomplete values (e.g., autocomplete="text")
Setting autocomplete="off" unnecessarily (breaks user experience)
Not distinguishing between new-password and current-password
Missing name attributes (autocomplete relies on proper naming)
Frequently Asked Questions
What are common autocomplete values?
Should I use autocomplete="off"?
What about password fields?
Does autocomplete work on all browsers?
Check your website for free
Get your ADA, WCAG, privacy & security score in 90 seconds.