W3Schools.com

HTML5 spellcheck Attribute

HTML5 Global Attributes HTML5 Global Attributes

Example

An editable paragraph with spellcheck:

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

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The spellcheck attribute is currently supported in Opera, Chrome, and Safari.


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

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


HTML5 Global Attributes HTML5 Global Attributes
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE