Autocomplete Tokens

HTML autocomplete="postal-code"

Build a form with the HTML form generator

Postal or ZIP code. Keep it as text to accommodate letters, separators and leading zeros. 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="postal-code"

Parameters & Attributes

NameTypeDescription
autocompleteordered token listUse postal-code as the attribute value.

Working Example

Example Snippethtml
<label>  Postal code  <input type="text" name="postal-code" autocomplete="postal-code"></label>
HTML Reference