Skip to content
Related Articles

Related Articles

Improve Article
HTML | autocomplete Attribute
  • Last Updated : 31 May, 2019

The HTML autocomplete Attribute is used to specify whether the input field has autocompleted would be on or off. When the autocomplete attribute is set to on the browser will automatically complete the values base on which the user entered before.
It works with many input fields such as text, search, URL, email, password, date pickers, range, and color.


<element autocomplete="on | off"> 

Applicable: The autocomplete attribute applicable for:

Example: This Example illustrates the use of autocomplete attribute in input element:

<!DOCTYPE html>
        HTML |
        <input>autocomplete Attribute
<body style="text-align:center;">
    HTML | 
    autocomplete Attribute in <input> Element
    <form id="myGeeks">
        <input type="text"
        <input type="submit">


Supported Browsers:

  • Google Chrome
  • Firefox
  • Edge
  • Opera
  • Apple Safari
My Personal Notes arrow_drop_up
Recommended Articles
Page :