X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML spellcheck Attribute


Example

An editable paragraph with spellcheck:

<p contenteditable="true" spellcheck="true">This is a paragraph.</p>

Try it Yourself »

Definition and Usage

The spellcheck attribute specifies whether the element is to have its spelling and grammar checked or not.

The following can be spellchecked:

  • Text values in input elements (not password)
  • Text in <textarea> elements
  • Text in editable elements

Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Attribute
spellcheck 9.0 10.0 2.0 5.1 10.5


Differences Between HTML 4.01 and HTML5

The spellcheck attribute is new in HTML5.


Syntax

<element spellcheck="true|false">

Attribute Values

Value Description
true The element is to have its spelling and grammar checked
false The element is not to be checked


Related Pages

HTML Tutorial: HTML Attributes

HTML Reference: HTML contenteditable Attribute



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook