How to disable form spellcheck

Learn how to turn off spellcheck for form elements (grammar correction).

Turn off spellcheck

By default, when you type text into a form element, incorrectly spelled or incorrect words will appear with a red underline below.

However, you can use spellcheck="false" To turn off spellcheck:

Example

<!-- For input boxes -->
<input type="text" spellcheck="false">
<!-- For text areas -->
<textarea spellcheck="false"></textarea>

Try it yourself

You can also turn off spellcheck for the entire form:

Example

<form spellcheck="false">

Try it yourself

Related pages

Tutorial:HTML formulær

Reference manual:HTML spellcheck egenskab