Autocomplete Tokens

HTML autocomplete="one-time-code"

Build a form with the HTML form generator

A short-lived authentication code. Use inputmode numeric only if all valid codes are numeric; preserve 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="one-time-code"

Parameters & Attributes

NameTypeDescription
autocompleteordered token listUse one-time-code as the attribute value.

Working Example

Example Snippethtml
<label>  Verification code  <input type="text" name="one-time-code" autocomplete="one-time-code"></label>
HTML Reference