HTML input autocomplete Attribute

HTML <input> tag : An HTML form with autocomplete on (and off for one input field)

Definition and Usage

The autocomplete attribute specifies whether or not an input field should have autocomplete enabled.

Autocomplete allows the browser to predict the value. When a user starts to type in a field, the browser should display options to fill in the field, based on earlier typed values.

Note: The autocomplete attribute works with the following input types: text, search, url, tel, email, password, datepickers, range, and color.

Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Attribute
autocomplete 17.0 6.0 2.0 5.1 10.0
Tip: In some browsers you may need to activate an autocomplete function for this to work (Look under "Preferences" in the browser's menu).

Syntax

<input autocomplete="on|off">

Attribute Values

Value Description
on Default. Specifies that autocomplete is on (enabled)
off Specifies that autocomplete is off (disabled)

❮ HTML <input> tag