Heading Tag in HTML – How To Is Work & How To Use

What Is Heading?

What is a heading and why do we make a heading standby? Before writing any paragraph or article, we write the title of this paragraph. This is called heading.

Type Of Heading Tag In HTML

<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>

H1 Is The Most Important Heading Tag in HTML

<h1> I Love Pakistan </h1>


Output Result:

I Love Pakistan

The Different HTML headings:

<h1> I Love Pakistan </h1>

<h2> I Love Pakistan</h2>

<h3> I Love Pakistan</h3>

<h4> I Love Pakistan</h4>

<h5> I Love Pakistan</h5>

<h6> I Love Pakistan</h6>

Output Result:

I Love Pakistan

I Love Pakistan

I Love Pakistan

I Love Pakistan

I Love Pakistan
I Love Pakistan

Change Heading Background & Font Color

background-color: ;

color: ;

How To Apply In HTML?

<h1 style="background-color:gray; color: white"> I LOVE PAKISTAN </h1>

I LOVE PAKISTAN