Syntax
<input name="email" type="email" autocomplete="email">Examples
Form Autofill with autocomplete: working example
Save as an HTML file and open it in a browser. Expected result: Three labeled fields appear with semantic autofill hints; suggestions depend on the browser and saved data.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Working example</title>
</head>
<body>
<form>
<p><label>Full name <input name="name" autocomplete="name"></label></p>
<p><label>Email <input name="email" type="email" autocomplete="email"></label></p>
<p><label>Delivery postcode <input name="postal" autocomplete="shipping postal-code"></label></p>
<button type="button">Review details</button>
</form>
</body>
</html>- Expected result: Three labeled fields appear with semantic autofill hints; suggestions depend on the browser and saved data.
- shipping qualifies the address token, distinguishing it from billing information.
- autocomplete complements labels and input types; it does not validate a value.
Best practices
- Use standardized tokens instead of invented field-purpose strings.
- Do not rely on autocomplete="off" to prevent password-manager behavior.
Browser compatibility
Support applies to the named feature, not every attribute or behaviour in this article. Versions refer to browsers, not operating systems.
Autofill availability also depends on settings and saved data. Individual autocomplete-token support is shown where BCD records it.
<input> autocomplete
Desktop
- Chrome
- Supported
From 14 - Firefox
- Supported
From 4 - Safari
- Supported
From 6 - Edge
- Supported
From 12 - Opera
- Supported
By 12.1 (possibly earlier)
Mobile
- Safari on iOS
- Supported
From 6 - Chrome for Android
- Supported
From 18 - Firefox for Android
- Supported
From 4 - Samsung Internet
- Supported
From 1.0
MDN BCD record for this feature · MDN reference
Support history and limitations
Chrome
- From 14
Firefox
- From 4
Safari
- From 6
Edge
- From 12
Opera
- By 12.1 (possibly earlier)
Safari on iOS
- From 6
Chrome for Android
- From 18
Firefox for Android
- From 4
Samsung Internet
- From 1.0
Individual autocomplete contact tokens
Desktop
- Chrome
- Unknown
- Firefox
- Unknown
- Safari
- Unknown
- Edge
- Unknown
- Opera
- Unknown
Mobile
- Safari on iOS
- Unknown
- Chrome for Android
- Unknown
- Firefox for Android
- Unknown
- Samsung Internet
- Unknown
No single verified compatibility record for this topic. Use the feature-specific articles; no browser support is inferred.
autocomplete on and off values — no separate BCD record
Desktop
- Chrome
- Unknown
- Firefox
- Unknown
- Safari
- Unknown
- Edge
- Unknown
- Opera
- Unknown
Mobile
- Safari on iOS
- Unknown
- Chrome for Android
- Unknown
- Firefox for Android
- Unknown
- Samsung Internet
- Unknown
No single verified compatibility record for this topic. Use the feature-specific articles; no browser support is inferred.
MDN BCD 8.1.5 · Dataset built 2026-10-08 · Mapping reviewed 2026-10-21. These dates are not individual browser-test or claim-verification dates. Unknown means the data does not establish support.