Check spelling (or not) in HTML input
TIL: You can use the spellcheck attribute to instruct browsers that, if possible, an element should or should not be checked for spelling errors.
— Manuel Matuzović (@mmatuzo) February 21, 2021
Demo: https://t.co/1DL7P6EXPD
TIL: https://t.co/JUR9AtvQ7q
MDN: https://t.co/Ghnwp769AL pic.twitter.com/4nMosG697K
You can use the spellcheck
attribute to control the browser's spellcheck capability for form inputs or HTML elements with contenteditable
.
Possible values:
<textarea spellcheck>
Spelling is checked
</textarea>
<textarea spellcheck="false">
Spelling is not checked
</textarea>