How to disable browser autocomplete on web form field/input tags with HTML?

Spread the love

Sometimes, we want to disable browser autocomplete on web form field/input tags with HTML.

In this article, we’ll look at how to disable browser autocomplete on web form field/input tags with HTML.

How to disable browser autocomplete on web form field/input tags with HTML?

To disable browser autocomplete on web form field/input tags with HTML, we can set the autocomplete attribute to off.

For instance, we write

<input type="text" name="foo" autocomplete="off" />

to set the autocomplete attribute to off in the input to disable autocomplete on it.

Conclusion

To disable browser autocomplete on web form field/input tags with HTML, we can set the autocomplete attribute to off.

Leave a Reply

Your email address will not be published. Required fields are marked *