input autocomplete - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input

Introduction

You can be more specific by applying the autocomplete attribute to individual input elements, as shown in the following example.

The autocomplete attribute on the form element sets the default policy for the input elements in the form.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <form autocomplete="off" method="post" action="http://example.com/form"> 
         <input autocomplete="on" name="fave"> 
         <input name="name"> 
         <button>Submit Vote</button> 
      </form>  
   </body><!--from  w  w  w  .  j  ava 2 s  .  c o  m-->
</html>

Related Tutorials