Latest web development tutorials

HTML spellcheck attribute

HTML Global Attributes HTML Global Attributes

Examples

Check with the preparation of editable paragraph:

<P contenteditable = "true" spellcheck = "true"> This is a paragraph editable. Try to edit the text. </ P>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome, and Safari browser support spellcheck attribute.

Note: Internet Explorer 9 and earlier versions of IE do not support the spellcheck attribute.


Definition and Usage

Whether spellcheck attribute specifies the elements of the spell checker.

You can check the spelling of the following text:

  • Type text input element values ​​(non-password)
  • textarea element value
  • Editable element value

Differences between HTML 4.01 and HTML5

spellcheck attribute is new HTML5.


grammar

<Element spellcheck = "true | false">

Property Value

value description
true Provision should text elements of spell check.
false Provisions should not check the spelling of text elements.


HTML Global Attributes HTML Global Attributes