Sometimes, we want to tell the browser not to cache/preserve input values with HTML.
In this article, we’ll look at how to tell the browser not to cache/preserve input values with HTML.
How to tell the browser not to cache/preserve input values with HTML?
To tell the browser not to cache/preserve input values with HTML, we set the autocomplete attribute to off.
For instance, we write
<form autocomplete="off">...</form>
to set the autocomplete attribute to off to stop the browser from saving past input values in the form.
Conclusion
To tell the browser not to cache/preserve input values with HTML, we set the autocomplete attribute to off.