It is very important to have different types of headings to structure the content of the web page. Headings help search engines to understand and index the structure of the web page.
Headings in an HTML document are written in heading tags. There are 6 levels of headings in HTML. The <h1> - <h6> tags are used to mark headings according to their importance. The <h1> tag stands for the most important heading of the web page and the <h6> stands for the least important and smallest one.
The hierarchy of headings in HTML look like this:
<html> <head> <title>Title of the document</title> </head> <body> <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> </body> </html>