spellcheck HTML global attribute

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since November 2017.

The spellcheck global attribute is an enumerated attribute that defines whether the element may be checked for spelling errors.

Note: This attribute is merely a hint for the browser: browsers are not required to check for spelling errors. Typically non-editable elements are not checked for spelling errors, even if the spellcheck attribute is set to true and the browser supports spellchecking.

Try it

<textarea spellcheck="true">This exampull will be checkd fur spellung when you try to edit it.</textarea>

<textarea spellcheck="false">This exampull will nut be checkd fur spellung when you try to edit it.</textarea>

It may have the following values:

  • empty string or true, which indicates that the element should be, if possible, checked for spelling errors;
  • false, which indicates that the element should not be checked for spelling errors.

If this attribute is not set, its default value is element-type and browser-defined. This default value may also be inherited, which means that the element content will be checked for spelling errors only if its nearest ancestor has a spellcheck state of true.

Security and privacy concerns

Using spellchecking can have consequences for users' security and privacy. The specification does not regulate how spellchecking is done and the content of the element may be sent to a third party for spellchecking results (see enhanced spellchecking and "spell-jacking").

You should consider setting spellcheck to false for elements that can contain sensitive information.

Specifications

Specification
HTML
# attr-spellcheck

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
spellcheck
Chrome – Full support
Chrome 9 (Release date: 2011-02-03)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 2 (Release date: 2006-10-24)
footnote Full support
Opera – Full support
Opera 15 (Release date: 2013-07-02)
footnote Full support
Safari – Full support
Safari 5.1 (Release date: 2011-07-20)
footnote Full support
Chrome Android – Partial support
Chrome Android 18 – 46 (Release date: 2012-06-27)
footnote Partial support
footnote Only supported on <textarea>.
Chrome Android – Full support
Chrome Android 47 (Release date: 2015-12-02)
footnote Full support
Firefox for Android – Partial support
Firefox for Android 4 – 56 (Release date: 2011-03-29)
footnote Partial support
footnote Only supported on <textarea>.
Firefox for Android – Full support
Firefox for Android 57 (Release date: 2017-11-28)
footnote Full support
Opera Android – Partial support
Opera Android 14 – 36 (Release date: 2013-05-21)
footnote Partial support
footnote Only supported on <textarea>.
Opera Android – Full support
Opera Android 37 (Release date: 2016-06-16)
footnote Full support
Safari on iOS – No support
Safari on iOS 5 – 9 (Release date: 2011-10-12)
footnote Only supported on <textarea>.
Safari on iOS – Full support
Safari on iOS 9.3 (Release date: 2016-03-21)
footnote Full support
Samsung Internet – Partial support
Samsung Internet 1 – 4.2 (Release date: 2013-04-27)
footnote Partial support
footnote Only supported on <textarea>.
Samsung Internet – Full support
Samsung Internet 5 (Release date: 2016-12-15)
footnote Full support
WebView Android – Partial support
WebView Android 4.4 – 46 (Release date: 2013-12-09)
footnote Partial support
footnote Only supported on <textarea>.
WebView Android – Full support
WebView Android 47 (Release date: 2015-12-02)
footnote Full support
WebView on iOS – No support
WebView on iOS 5 – 9 (Release date: 2011-10-12)
footnote Only supported on <textarea>.
WebView on iOS – Full support
WebView on iOS 9.3 (Release date: 2016-03-21)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Has more compatibility info.

See also