HTML5 > New attributes

Spellcheck in HTML5

How to check the spelling of the text whether it is correct or wrong in HTML5?


Spellcheck

It is used to check the spelling of the text whethere it is correct or wrong.

<h2>Spellcheck is used to check the spelling of the text </h2>
    <p contenteditable="true" spellcheck="true">This is a g0lbe. </p>

In the above code snippet we defined the spellcheck attribute, it shows the wrong text which is written in the paragraph, we have spellcheck as true and spelling as golbe instead of globe, and given content editable which is used to edit in the output 

output

 Views: 595 | Post Order: 107



Write for us