What is the use of spellcheck attribute?

What is the use of spellcheck attribute?
A. Checks spelling
B. Indicates if spell checking is allowed
C. Checks spelling and corrects it
D. Checks spelling of a given particular text only
 
Answer: b
Explanation: spellcheck is a global attribute, it indicates if spell checking is allowed or not for the element. Syntax is
Code:
<p contenteditable=”true” spellcheck=”true”> William Shakespeare was a great novelist. </p>
Output:
William Shakespeare was a great novelist.
.
 

Tìm kiếm

Back
Top