What is the significance of adding autocomplete attribute in HTML Form ? Last Updated : 28 Feb, 2022 Comments Improve Suggest changes Like Article Like Report The HTML <form> autocomplete attribute is used to specify that the form has autocompleted on or off value. When the autocomplete attribute is set to "on", the browser will automatically complete the values based on which the user entered before. Syntax: <form autocomplete="on|off"> Attribute values: on: It has a default value. When the autocomplete attribute is set to "on" the browser will automatically complete the values based on which the user entered before.off: The user should have entered the values of each field for every use. The browser should not autocomplete entries. Example 1: This example illustrates the use of the <form> autocomplete attribute set to "on". HTML <!DOCTYPE html> <html> <head> <title> HTML Form autocomplete Attribute </title> </head> <body style="text-align:center"> <h1 style="color:green;"> GeeksforGeeks </h1> <h2>HTML form autocomplete Attribute</h2> <form action="#" method="post" id="users" autocomplete="on"> <label for="username"> Username: </label> <input type="text" name="username" id="Username"> <br> <label for="password"> Password: </label> <input type="password" name="password" id="password"> <br> </form> </body> </html> Output: Example 2: This example illustrates the use of the <input> autocomplete attribute set to "off". HTML <!DOCTYPE html> <html> <head> </head> <body> <h1 style="color:green;">Welcome to GeeksforGeeks</h1> <form id="formID"> <input type="text" autocomplete="off" id="text_id" name="name"> <input type="submit"> </form> </body> </html> Output: Comment More infoAdvertise with us Next Article What is the significance of adding autocomplete attribute in HTML Form ? S sravankumar_171fa07058 Follow Improve Article Tags : HTML HTML-Attributes HTML-Questions Similar Reads What is significance of declaring attribute in HTML elements ? In this article, we will know HTML Attributes' significance while declaring and their implementation through the examples. All HTML elements have attributes that will provide additional information about that particular element. It takes 2 parameters, ie, a name & a value which define the proper 2 min read HTML < form> autocomplete Attribute The HTML <form> autocomplete attribute allows the browser to automatically fill the form fields based on previous user inputs.Used to save time by reusing data like names, emails, and addresses.It can be turned "on" or "off" depending on the field's requirements.Syntax<form autocomplete="on 3 min read HTML <input> autocomplete Attribute 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 s 1 min read HTML | <select> autocomplete Attribute The HTML <select> autocomplete attribute is used to specify that the form has autocompleted on or off. When the autocomplete attribute is set to on the browser will automatically complete the values based on which the user entered before. Syntax: <select autocomplete="on | off"> Attribut 1 min read HTML <textarea> autocomplete Attribute The HTML <textarea> autocomplete Attribute is used to specify whether the Textarea field has autocomplete on or off. When the autocomplete attribute is set to on, the browser will automatically complete the values based on which the user entered before. It works with many input fields such as 1 min read Like