Autocomplete Tokens
HTML autocomplete="postal-code"
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
| Name | Type | Description |
|---|---|---|
| autocomplete | ordered token list | Use postal-code as the attribute value. |
Working Example
Example Snippethtml
<label> Postal code <input type="text" name="postal-code" autocomplete="postal-code"></label>