How to disable auto-complete, auto-correct in HTML input

Thomas Mak wrote at 2017-05-04.

#html-form

The code that disables auto-complete, auto-correct, auto-capitalize and spell check.

<input autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false">

Spellcheck doc:

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck


Auto-Complete doc:

https://html.spec.whatwg.org/multipage/forms.html#autofilling-form-controls:-the-autocomplete-attribute


Auto-Capitalize doc:

Possible options:

Note, on, off is deprecated.

Reference from MDN

Comments

no comments yet.