Autocomplete Tokens

HTML autocomplete="cc-exp-year"

Build a form with the HTML form generator

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

NameTypeDescription
autocompleteordered token listUse 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>
HTML Reference