form autocomplete Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:form

Description

The autocomplete attribute sets if a form should have autocomplete.

When autocomplete is on, the browser automatically complete values that the user has entered before.

It is possible to have autocomplete "on" for the form, and "off" for specific input fields, or vice versa.

Attribute Values

Value Description
onDefault. The browser will automatically complete values
off The browser does not automatically complete entries

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<form action="/action_page.php" method="get" autocomplete="on">
  First name:<input type="text" name="fname"><br>
  E-mail: <input type="email" name="email"><br>
  <input type="submit">
</form><!-- ww w  .jav  a  2 s . c o m-->

</body>
</html>

Related Tutorials