How to add a spellchecker for text in HTML?

HTMLWeb DevelopmentFront End Technology

To add a spellchecker, use the spellcheck attribute in HTML. The attribute checks spelling and grammer for text in input elements, <textarea> elements and editable elements.

Note − It works for input elements, but not password.


You can try to run the following code to add spell checker in HTML −

<!DOCTYPE html>
      Subject: <input type="text" name="sub" spellcheck="true">
      <p>Add an incorrect spelling for a word above and see what happens.</p>
      <p contenteditable="true" spellcheck="true">This is an editable conttent, with a spelling mistake. Click to edit.</p>
Published on 14-Mar-2018 10:56:36