How to disable autocomplete via CSS?

Spread the love

Sometimes, we want to disable autocomplete via HTML.

In this article, we’ll look at how to disable autocomplete via HTML.

How to disable autocomplete via HTML?

To disable autocomplete via HTML, we set the autocomplete attribute to off.

For instance, we write

<input type="text" id="foo" value="bar" autocomplete="off" />;

to add an input with autocomplete off by setting the autocomplete attribute to off.

Conclusion

To disable autocomplete via HTML, we set the autocomplete attribute to off.

Leave a Reply

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