HTML global attribute spellcheck








The spellcheck attribute tells if the browser should check the spelling of an element's content.

Using this attribute makes sense only when it is applied to an element the user can edit.

What's new in HTML5

The spellcheck attribute is new in HTML5.

Syntax

<element spellcheck="true|false">

Attribute Values

true
change the spell
false
no to check the spell

Browser compatibility

spellcheck Yes 10.0 Yes Yes Yes




Example

<!DOCTYPE HTML>
<html>
<body>
    <textarea spellcheck="true">This is some mispelled text</textarea>
</body>
</html>

Click to view the demo

The permitted values for the spellcheck attribute are true (spellchecking is enabled) and false (spellchecking is disabled).

The spellchecking is implemented differs between browsers.