HTML Headings Example

The HTML has six different heading tags. it defined as a title or a subtitle and display on the webpage. every heading tag has a different font size so you can see the below example.

HTML h1 tag

The HTML H1 tag is the main heading tag of a web page. Search engines such as Google, yahoo, bing, etc. give top priority to the h1 element. According to the search engine parameters, the h1 tag should be used only once on a web page. The default font size of the h1 element is 2em.

HTML H2 tag

The HTML H2 tag is the subheading of the h1 tag element. It is recommended to use the headings in the correct order to get better search results.

Tag Descrption Output
<h1> .. <h1> Heading 1

Heading 1

<h2> .. <h2> Heading 2

Heading 2

<h3> .. <h3> Heading 3

Heading 3

<h4> .. <h4> Heading 4

Heading 4

<h5> .. <h5> Heading 5
Heading 5
<h6> .. <h6> Heading 6
Heading 6