Computer >> Computer tutorials >  >> Programming >> HTML

HTML Spell Check


The HTML Spell Check is used to identify grammar or spelling mistakes in HTML text fields. The property returns the color resolution of the visitor’s screen.

Syntax

Following is the syntax −

<tagname spellcheck=”true | false”>

Example

Let us see an example of HTML Spell Check −

<!DOCTYPE html>
<html>
<style>
   body {
      color: #000;
      height: 100vh;
      background-color: #FBAB7E;
      background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
      text-align: center;
   }
</style>
<body>
<h1>HTML Spell Check</h1>
<textarea rows="5" cols="20" spellcheck="true" placeholder="Enter your message here"></textarea>
</body>
</html>

Output

HTML Spell Check

Now enter any message in the white textarea with some spelling or grammar mistake −

HTML Spell Check