The spellcheckglobal attribute is an enumerated hint that tells the browser whether an element’s text may be checked for spelling errors.
Common on editable controls such as <textarea>, text-like <input>, and contenteditable regions. Browsers are not required to spellcheck even when the value is true.
Baseline · Widely available.
Not deprecated. Stable global attribute across modern browsers (widely since about November 2017).
Privacy tip.
Spellchecking may send text to a third party. Prefer spellcheck="false" on fields that can hold secrets (emails, tokens, personal notes).
Syntax
HTML Syntax
syntax.html
<element spellcheck="true | false">
An empty string (spellcheck="" or bare spellcheck where allowed) is treated like true. If omitted, the default is element- and browser-defined and may be inherited from the nearest ancestor with a set state.
Toggle spellcheck on a textarea with intentional misspellings. Click into the field and edit — many browsers underline errors only when checking is on.
Hint only — your OS/browser must support spellchecking for underlines to appear.
Editable field
Code
HTML Examples
Short study snippets. Use Try It Yourself for a live editor.
Example 1 — Textarea: On vs Off
Compare two text areas with the same misspellings.
HTML
<label for="on">Checked</label>
<textarea id="on" spellcheck="true">
This exampull will be checkd fur spellung.
</textarea>
<label for="off">Not checked</label>
<textarea id="off" spellcheck="false">
This exampull will nut be checkd fur spellung.
</textarea>
false avoids red underlines on codes and short tokens.
Sensitive fields — prefer false for privacy (MDN guidance).
lang still describes language; it does not replace spellcheck.
Example 3 — contenteditable Region
Spellcheck also applies to editable non-form elements.
HTML
<div contenteditable="true" spellcheck="true"
role="textbox" aria-multiline="true"
aria-label="Editable note">
Type a sentense with mispellings here.
</div>
spellcheck="true" requests spelling checks on that region.
role + aria-label keep the control clearer for assistive tech.
Non-editable text is usually not spellchecked even with true.
Edge Cases & Pitfalls
Treat spellcheck as a hint, not a guarantee or a validator.
hint
Browsers may ignore true
MDN: browsers are not required to check spelling. OS language packs and settings matter.
edit
Non-editable content usually skipped
Static paragraphs typically are not spellchecked even with spellcheck="true".
inherit
Default can inherit
If omitted, state may follow the nearest ancestor that set spellcheck.
privacy
Sensitive text → false
Enhanced spellchecking can send content off-device. Disable on secrets.
lang
Language is separate
Use lang for language; use spellcheck only for on/off checking.
Compatibility
Browser Support
spellcheck is an HTML global attribute — a hint for spelling checks on editable content.
✓ Baseline · Widely available
spellcheck
Widely available since about November 2017. Actual underlines depend on the browser and OS spellchecker.
96%Global support (approx.)
Google ChromeAll modern
Full support
Mozilla FirefoxAll modern
Full support
Apple SafariAll modern
Full support
Microsoft EdgeAll modern
Full support
OperaAll modern
Full support
Samsung InternetModern
Full support
Internet ExplorerPartial / older
Limited
spellcheckWidely supported
Bottom line: Safe to use as a UX hint. Always assume checking is optional, and turn it off for sensitive fields.
Remember
Key Takeaways
Role: global hint — may check spelling on editable text.
Values:true / empty → check; false → do not.
Editable only: non-editable nodes are usually skipped.
Privacy: use false where text may be sensitive.
One line:spellcheck asks for spelling help — it does not guarantee it.
Frequently Asked Questions
It is a hint telling the browser whether this element’s text may be checked for spelling errors. Browsers are not required to spellcheck even when the value is true.
true (or the empty string) enables checking when possible; false disables it. If omitted, the default is element- and browser-defined and may be inherited from an ancestor.
Usually no. MDN notes that non-editable elements typically are not spellchecked even if spellcheck is true.
Yes. Consider spellcheck=false on fields that may hold sensitive data so content is less likely to be sent to a third-party checker.
No. lang declares the language of the content. Spellcheck decides whether spelling may be checked; dictionaries often follow language settings.
Yes. Editable regions can use spellcheck=true or false the same way as textarea and text-like inputs.