HTML CSS examples for HTML Global Attribute:spellcheck
The spellcheck attribute specifies whether the element is to have its spelling and grammar checked or not.
The following can be spellchecked:
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:
<!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>