Autocomplete Tokens
HTML autocomplete="cc-exp-year"
Year portion of expiry; define the accepted year format in the form and payment integration. 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="cc-exp-year"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| autocomplete | ordered token list | Use cc-exp-year as the attribute value. |
Working Example
Example Snippethtml
<label> Card expiry year <input type="text" name="cc-exp-year" autocomplete="cc-exp-year" inputmode="numeric"></label>