HTML <form> with autocomplete Attribute

HTML <form> with autocomplete Attribute

The autocomplete attribute specifies whether the value of the <input> elements in the form can be automatically completed by the browser.

on

The browser will automatically complete values based on values that the user has entered before.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <form action="/user-name.php" autocomplete="on"> Name: <input type="text" name="name"> <button type="submit">Submit</button> </form> </body> </html>

Attribute Value

ValueExplanation
onThe browser will automatically complete values based on values that the user has entered before. Default.
offThe browser will not automatically complete the values, by which user have to type the entire value.

off

The browser will not automatically complete the values, by which user have to type the entire value.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <form action="/user-name.php" autocomplete="off"> Name: <input type="text" name="name"> <button type="submit">Submit</button> </form> </body> </html>

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Meet the Author