The spell check feature is introduced in HTML5 to allow we to check spelling mistakes of the editable text. This feature uses the contentEditable Attribute to find spelling mistakes in Web page.
Syntax :
<element spellcheck=[value] >
Here the element represents an HTML element and the spellcheck attribute can take any of following values:
The below code we use the spellcheck attribute :
<TEXTAREA spellcheck="true">
.........
........
........
<TEXTAREA>
Syntax :
<element spellcheck=[value] >
Here the element represents an HTML element and the spellcheck attribute can take any of following values:
- True - Checks an element for spelling and grammar if it's content is editable
- False - Does not check an element for spelling and grammar
- Inherit - Specifies that an element inherits the sell check behavior from its parent element
The below code we use the spellcheck attribute :
<TEXTAREA spellcheck="true">
.........
........
........
<TEXTAREA>
No comments:
Post a Comment