Autocomplete Tokens

HTML autocomplete="address-level2"

Build a form with the HTML form generator

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

NameTypeDescription
autocompleteordered token listUse address-level2 as the attribute value.

Working Example

Example Snippethtml
<label>  City or locality  <input type="text" name="address-level2" autocomplete="address-level2"></label>
HTML Reference