The spellcheck
global attribute is an enumerated attribute defines whether the element may be checked for spelling errors.
The spellcheck
global attribute is an enumerated attribute defines whether the element may be checked for spelling errors.
It may have the following values:
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
.
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.
Specification |
---|
HTML Standard # attr-spellcheck |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
spellcheck |
9 |
12 |
Yes |
11 |
Yes |
Yes |
47 |
47 |
57 |
37 |
9.3 |
5.0 |
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck