How TO - Disable Spellcheck for Forms


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


Turn Off Spellcheck

By default, when you enter text inside a form element, you will see a red underline below words that are not spelled right/incorrect. However, you can use spellcheck="false" to turn off spell checking:

Example

<!-- for inputs -->
<input type="text" spellcheck="false">

<!-- for textareas -->
<textarea spellcheck="false"></textarea>
Try it Yourself »

You can also turn of spell checking for the whole form:

Example

<form spellcheck="false">
Try it Yourself »

Tip: Go to our HTML Form Tutorial to learn more about HTML Forms.

Tip: Go to our HTML spellcheck Attribute Reference to learn more about the global spellcheck attribute.


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.