HTML - How can i disable auto text correction in my TEXTAREA?

HtmlTextareaAutocorrect

Html Problem Overview


My textarea contains C# code, so i get red underlines all over the place, is there any way to disable auto correction on a TEXTAREA in html code?

Thank

Html Solutions


Solution 1 - Html

I believe you may be looking for <textarea spellcheck="false"></textarea>

Source: https://developer.mozilla.org/en/controlling_spell_checking_in_html_forms

Solution 2 - Html

There are two more attributes other than spellcheck="false" for iOS (probably Android too) that you might need to add to your text inputs to avoid OS interferer with text content:

  • autocorrect="off" for avoiding to complete or suggest a word
  • autocapitalize="off" for avoiding OS transforming book to Book
  • spellcheck="false" for avoiding OS from highlighting spell errors

enter image description here

Solution 3 - Html

Try adding the following code to your textarea:

 spellcheck="false"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionaryaxtView Question on Stackoverflow
Solution 1 - HtmlRobertView Answer on Stackoverflow
Solution 2 - HtmlMohsenView Answer on Stackoverflow
Solution 3 - HtmlhollskView Answer on Stackoverflow