Bart Veneman

Creator of Project Wallace, analytics for CSS. <noscript>-fanboy. Serverless clearfix engineer. I can lift node_modules twice my own weight.

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.

Demo: https://t.co/1DL7P6EXPD TIL: https://t.co/JUR9AtvQ7q MDN: https://t.co/Ghnwp769AL pic.twitter.com/4nMosG697K — Manuel Matuzović (@mmatuzo) February 21, 2021

You can use the spellcheck attribute to control the browser's spellcheck capability for form inputs or HTML elements with contenteditable.

Docs on MDN.

Possible values:

<textarea spellcheck>
Spelling is checked
</textarea>

<textarea spellcheck="false">
Spelling is not checked
</textarea>

Tags