Open In App
Related Articles

HTML input autocomplete Attribute

Improve Article
Save Article
Like Article

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


<input autocomplete="on|off">

Attribute Values: 

  • on: It has a default value. It specifies that autocomplete is enabled.
  • off: It specifies that the autocomplete is disabled.

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


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



HTML input autocomplete attribute

Supported Browsers: The browser supported by HTML <input> autocomplete Attribute are listed below: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 04 Jul, 2023
Like Article
Save Article
Similar Reads
Complete Tutorials