Autocomplete Tokens

HTML autocomplete="bday-year"

Build a form with the HTML form generator

Year component of a split birth date; do not treat it as a complete date. 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="bday-year"

Parameters & Attributes

NameTypeDescription
autocompleteordered token listUse bday-year as the attribute value.

Working Example

Example Snippethtml
<label>  Birth year  <input type="text" name="bday-year" autocomplete="bday-year" inputmode="numeric"></label>
HTML Reference