November 2011
Intermediate to advanced
384 pages
13h 23m
English
Most web browsers provide a useful built-in spell-check feature available to any website that allows the user to type text. This feature is enabled when a spellcheck attribute is enabled on an editable text block. Note that content displayed on a site that is not editable is not spell-checked.
This technique can apply to almost any editable text block. This is possible because spellcheck is a new global attribute in HTML5. It is most common to see this on input type=text or textarea elements:
<input type='text' spellcheck='true' value='Spell-check text input'>
If any elements exist under a spellcheck-active block, they will inherit the spellcheck property. If you add spellcheck to <body>, all form inputs and editable ...
Read now
Unlock full access