HTML heading describe what type of heading given in html pages.
There are six type of html headings using in html
Syntax:
<h1> This is heading 1 </h1>
<h2> This is heading 2 </h2>
<h3> This is heading 3 </h3>
<h4> This is heading 4 </h4>
<h5> This is heading 5 </h5>
<h6> This is heading 6 </h6>
Example of html heading tags:
<!DOCTYPE html>
<html>
<head>
<title>HTML Deading Tags</title>
</head>
<body>
<h1>This is heading tag 1</h1>
<h2>This is heading tag 2</h2>
<h3>This is heading tag 3</h3>
<h4>This is heading tag 4</h4>
<h5>This is heading tag 5</h5>
<h6>This is heading tag 6</h6>
</body>
</html>
Output:
Note: if we write heading tag <h7>This is heading 7 </h7>, its display normal text because it is not predefine tags.