How to turn off spell checking (grammar correction) for HTML form elements?

To turn off spell check for form elements, the code is as follows −


 Live Demo

<!DOCTYPE html>
<h1>Disabling Spellcheck Example</h1>
<p>Your Name:</p>
<input type="text" name="fname" spellcheck="false">
<p>About Yourself</p>
<textarea name="about you" spellcheck="true"></textarea><br>
<input type="submit">
<h2>Type wrong spelling in the above input field to see spellcheck in action</h2>


The above code will produce the following output −

On typing something in the input fields −