Global spellcheck Attribute - HTML CSS HTML Global Attribute

HTML CSS examples for HTML Global Attribute:spellcheck

Description

The spellcheck attribute specifies whether the element is to have its spelling and grammar checked or not.

The following can be spellchecked:

  • Text values in input elements (not password)
  • Text in <textarea> elements
  • Text in editable elements

Attribute Values

Value Description
true The element is to have its spelling and grammar checked
false The element is not to be checked

An editable paragraph with spellcheck:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p contenteditable="true" spellcheck="true">This is a praggagraph. It is editable. Try to change the text.</p>

First name: <input type="text" name="fname" spellcheck="true">

</body><!--from w  w w  .  j  a  v  a  2s .  c  o  m-->
</html>

Related Tutorials