Sunday 30 June 2013

Spell Check in HTML

A lot of people are unaware of the spell check option that basic HTML offers. It can be implemented with a very small spellcheck attribute as shown below:

                       DEMO                    Download Script

HTML code:

<!DOCTYPE  HTML>
<HTML>
<HEAD>
<TITLE>HTML5 spell check example</TITLE>
</HEAD>
<BODY>
<FORM>
<TEXTAREA style="width:300px;height:150px;border: 1em solid black" spellcheck="false" contentEditable="true">Spell check off</TEXTAREA><BR />
<TEXTAREA style="width:300px;height:150px;border: 1em solid black" spellcheck="true" contentEditable="true">Spell check on</TEXTAREA><BR />
</FORM>
</BODY>
</HTML>

No comments:

Post a Comment