Autocomplete Tokens
HTML autocomplete="address-level2"
The second administrative address level, often a city; use labels that match local address conventions. Use this value on a compatible form control. Autofill is a browser/user preference, not an input constraint or proof that the value is accurate. Validate submitted data separately.
Formal Syntax & Structure
html syntaxhtml
autocomplete="address-level2"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| autocomplete | ordered token list | Use address-level2 as the attribute value. |
Working Example
Example Snippethtml
<label> City or locality <input type="text" name="address-level2" autocomplete="address-level2"></label>