Autocomplete Tokens

HTML autocomplete="country"

Build a form with the HTML form generator

Two-letter country code, not a translated country name; a select can present readable labels and store codes. 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="country"

Parameters & Attributes

NameTypeDescription
autocompleteordered token listUse country as the attribute value.

Working Example

Example Snippethtml
<label>  Country code  <input type="text" name="country" autocomplete="country"></label>
HTML Reference