Usually, when you enter the grammatically incorrect words inside <input> or <textarea> fileds in an HTML form you will see the red underline below the incorrect words.
This is the default behavior of Chrome and Firefox. However if you are using the input fields or text areas for editing the code or other non-prose data then the spell checker would not appropriate. In such situations you can disable this spell checking in HTML forms by setting the spellcheck attribute to false, like spellcheck="false". Let's check out an example:
Tip: To disable the spell checking in the entire form at once — just set the spellcheck="false" in the <form> tag, like this <form spellcheck="false">.
Set the
spellcheck
attribute tofalse
Usually, when you enter the grammatically incorrect words inside
<input>
or<textarea>
fileds in an HTML form you will see the red underline below the incorrect words.This is the default behavior of Chrome and Firefox. However if you are using the input fields or text areas for editing the code or other non-prose data then the spell checker would not appropriate. In such situations you can disable this spell checking in HTML forms by setting the
spellcheck
attribute tofalse
, likespellcheck="false"
. Let's check out an example:Tip: To disable the spell checking in the entire form at once — just set the
spellcheck="false"
in the<form>
tag, like this<form spellcheck="false">
.