Autocomplete Tokens

HTML autocomplete="cc-number"

Build a form with the HTML form generator

Payment card account number. Use a text field, never numeric arithmetic; use an approved payment integration and avoid logging the value. 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-number"

Parameters & Attributes

NameTypeDescription
autocompleteordered token listUse cc-number as the attribute value.

Working Example

Example Snippethtml
<label>  Card number  <input type="text" name="cc-number" autocomplete="cc-number" inputmode="numeric"></label>
HTML Reference