How to disable spell checking in CSS?

Any attributes or some settings to ignore the red coloring of the underline? or is it ignored due to browser settings?

enter image description here

+26
css css3
source share
4 answers

There is an HTML5 spell check attribute.

<textarea spellcheck="false"> or <input type="text" spellcheck="false"> 
+49
source share

This is not CSS, but HTML: spellcheck="false" in your HTML element should do the trick. But I think that Safari, for example, is still drawing a red line below it.

+5
source share

Yes, there is a spellchecking attribute in HTML5.

 <textarea spellcheck="false"> or <input type="text" spellcheck="false"> 

http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#spelling-and-grammar-checking

+5
source share

This can only be done using HTML5. This way you can add the spellcheck attribute to the HTML element using jquery. try it

 $("#textarea").attr("spellcheck", "false"); 
-one
source share

All Articles