Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off spell checking in CSS? [duplicate]

Tags:

css

Any attributes or some tweak to ignore the red-colored underline? or it's ignoreable due to browser settings?

enter image description here

like image 967
Prashanth Sams Avatar asked Aug 30 '16 07:08

Prashanth Sams


People also ask

How can you disable spell check on a Web page in html5?

Disabling Spell Check in a HTML Form: To disable spellcheck in a HTML form the spellcheck attribute is set to “false”.

Can you disable spell check?

Here's how. Select the text where you'd like to disable spell check or press Ctrl+A to select the entire document. On the Review tab, click Editor, and then click Set Proofing Language. In the Language box, click Don't check spelling or grammar, and then click OK.

How do I get rid of red lines in textarea?

Answer: Set the spellcheck attribute to false 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.

How do I toggle spell check?

Here's how. Click File > Options > Proofing, clear the Check spelling as you type box, and click OK. To turn spell check back on, repeat the process and select the Check spelling as you type box. To check spelling manually, click Review > Spelling & Grammar.


2 Answers

It's not CSS but HTML: spellcheck="false" in your HTML element should do the trick. But I think Safari for example still draws a red line under it.

like image 158
mxlse Avatar answered Oct 14 '22 02:10

mxlse


It's only possible to do this using HTML5. So you can add the spellcheck attribute to HTML element by using jquery. Try this

$("#textarea").attr("spellcheck", "false"); 
like image 35
Zolisa Welani Avatar answered Oct 14 '22 01:10

Zolisa Welani