Input text autocomplete is the default feature of any browser. While working with the form or input fields in HTML web page autocomplete feature of the browsers come in the picture. By default autocomplete is enabled in browsers so when submitting the form it remembers the information. So when again open the same form or fill the same input fields it shows the suggestions which were filled earlier by the user.
The autocomplete attribute is used to enable and disable autocompletion of text. This attribute contains two values:
To disable the autocomplete feature in the form or input field the autocomplete attribute set to off.
Example: This example does not use autocomplete attribute so by default the autocomplete attribute is enable.
Note: The autocomplete suggestions will be displayed always as per previously filled information to the form.
Example 2: This example sets autocomplete attribute to off.
- Difference between Web Browser and Web Server
- Web 1.0, Web 2.0 and Web 3.0 with their difference
- How to disable zoom on a mobile web page using CSS?
- How to give a div tag 100% height of the browser window using CSS
- HTML | DOM Form autocomplete Property
- HTML | <form> autocomplete Attribute
- How to open a PDF files in web browser using PHP?
- How to get the size of screen, current web page and browser window using jQuery?
- Difference between Search Engine and Web Browser
- How to enable/disable all input controls inside a form element using jQuery ?
- How to disable form submit on enter button using jQuery ?
- What purpose does a <script> tag serve inside of a <noscript> tag?
- Difference between <article> tag and <section> tag
- Why <big> tag is not in HTML5 while <small> tag exists ?
- HTML | <select> autocomplete Attribute
- HTML | DOM Input Email autocomplete Property
- HTML | DOM Input Text autocomplete Property
- HTML | DOM Input Search autocomplete Property
- HTML | DOM Input URL autocomplete Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.