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.


— 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 spellcheck="false">
Spelling is not checked