Attributes · spellcheck
Which attributes go with spellcheck?
spellcheck toggles squiggly underlines. These attributes work alongside it to control input behavior.
| Attribute | What it does | Docs |
|---|---|---|
spellcheck="true" | Explicitly enables browser spell checking and red squiggly underlines on the field. | MDN |
spellcheck="false" | Disables browser spell checking on this element and overrides any inherited value from parent elements. | MDN |
spellcheck="" | The empty string acts as true. A bare spellcheck attribute with no value also defaults to true. | MDN |
autocorrect | Safari and iOS non-standard attribute. Use autocorrect="off" to prevent Apple devices from autocorrecting text. | MDN |
autocapitalize | Controls automatic capitalization on mobile keyboards (such as off, none, sentences, words, or characters). | MDN |




