autocomplete Attribute :
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.
Differences Between HTML 4.01 and HTML5
The autocomplete attribute is new in HTML5.
| Example | ||
|
<form id="form1" > First name:<input type="text" name="fname" autocomplete = "on"><br /> E-mail: <input type="email" name="email" autocomplete = "off"><br /> <input type="submit" value="form1" > </form> |
code | |
| output | ||