×

Html & Html5

The World's best Software Development Study Portal

Heading Tag:


Heading tag is used to give the heading or sub headings to your web page. Size of the text will depend upon the heading tag used.
For example : h1 tag will show text in large and bold whereas h2 will display text smaller than h1 tag and so on till h6 tag which is smallest of all.

EXAMPLE:

<h1> My Heading </h1>

<h2> My Heading </h2>

<h3> My Heading </h3>

<h4> My Heading </h4>

<h5> My Heading </h5>

<h6> My Heading </h6>




OUTPUT:


h1 defines most important heading and h6 defines least important heading.


My Heading

My Heading

My Heading

My Heading

My Heading
My Heading