A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/attributes/autocomplete below:

autocomplete · WebPlatform Docs

autocomplete Summary

The autocomplete attribute specifies whether a browser should automatically provide values for a form element.

Applies to [HTMLInputElement](/html/elements/input)

When autocomplete is on, the browser may automatically fill previously entered values, or match input [names](/html/attributes/name) with values the user has provided.

For sensitive information or form content that is not repeated, autocomplete should be turned off so the user is forced to fill the field every time.

Autocomplete should also be turned off if the website provides its own mechanism for filling a field; for example, an autocomplete like shown in this site’s search.

Valid values for autocomplete are on or off. The attribute is not required.

Examples

This example uses the AUTOCOMPLETE attribute to disable the AutoComplete feature.

<input type="password" autocomplete="off">

The following example shows an HTML form with autocomplete on. One of the inputs ha autocomplete off.

<form action="submit.php" autocomplete="on">
  First name:<input type="text" name="name"><br />
  Last name: <input type="text" name="surname"><br />
  E-mail: <input type="email" name="email" autocomplete="off"><br />
  <input type="submit">
</form>
Related specifications
HTML5
W3C Candidate Recommendation
See also Related articles HTML Security Related pages

html/elements/input/password html/elements/input/text html/elements/form

Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4