HTML - attributes - spellcheck

revision:


Content

"spellcheck" attribute : specifies whether spelling and grammar are checked syntax some examples


"spellcheck" attribute : specifies whether spelling and grammar are checked

top

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

The spellcheck attribute is part of the global attributes and can be used on any HTML element.


syntax

top

<element spellcheck="true | false"></element>

true: the element is to have its spelling and grammar checked;
false: the element is not to be checked.


some examples

This is a praggagraph. It is editable. Try to change the text.

First name:

codes
                    <p class="spec" contenteditable="true" spellcheck="true"> This is a praggagraph. It is editable. 
                    Try to change the text.</p>
                    <p class="spec">First name: <input type="text" name="fname" spellcheck="true"></p>
                

Did you knoww you can click me to edit my contentz?

Did you knoww you can click me to edit my contentz

codes:
                    <p class="spec" contenteditable="true" spellcheck="true">Did you knoww you can click me 
                    to edit my contentz?</p>                             
                    <p class="spec" contenteditable="true" spellcheck="false">Did you knoww you can click me 
                    to edit my contentz</p>                                                    
                

type something here

codes:
                    <div>
                        <input type="text" spellcheck="true" placeholder="type something here">
                        <p contenteditable="true" spellcheck="true">type something here</p>
                    </div>