The HTML tag tag defines the titles on the web page based on their importance. This is a heading . HTML Headings Tags Example.

HTML uses six levels of heading tags from <H1> to <H6>.

<H1> defines the most important heading, whereas the <H6> defines the least important heading in the document.



<H1> This is a most important heading in the document </H1> 

<H2> This is a slightly less important title in the document </H2>

<H3> This is a little less important title in the document </H3>

<H4> This is a next little less important title in the document </H4>

<H5> This is a very little l important title in the document </H5>

<H6> This is a least important heading in the document </H6>

Heading tags can have many of the same attributes as paragraph tags


HTML Headings Tags Example

code:





<h1>This is a heading 1</h1>
<h2>This is a heading 2</h2>
<h3>This is a heading 3</h3>
<h4>This is a heading 4</h4>
<h5>This is a heading 5</h5>
<h6>This is a heading 6</h6>




result:



This is a heading 1

This is a heading 2

This is a heading 3

This is a heading 4

This is a heading 5
This is a heading 6