A HTML heading or HTML h tag can be defined as a title or a subtitle that you want to display on the webpage. When you place the text within the heading tags <h1>………</h1>, it is displayed on the browser in the bold format and size of the text depends on the number of heading.
There are six different HTML headings which are defined with the <h1> to <h6> tags, from highest level h1 (main heading) to the least level h6 (least important heading).
h1 is the largest heading tag and h6 is the smallest one. So h1 is used for most important heading and h6 is used for least important.
Headings in HTML help the search engine to understand and index the structure of a web page.
HEADINGS ARE IMPORTANT
- Search engines use headings to index the structure and content of your web pages.
- Users often skim a page by its headings. It is important to use headings to show the document structure.
<h1>headings should be used for main headings, followed by <h2> headings, then the less important <h3>, and so on.