Home / Programs / How to use heading tag in HTML?
Programming Example

How to use heading tag in HTML?

👁 520 Views
💻 Practical Program
📘 Step by Step Learning

HTML Headings:Headings are defined with the

to

tags.

defines the most important heading.

defines the least important heading.

Program Code

<xmp>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</xmp>

Output

<div class="embed-responsive embed-responsive-16by9 box effect6" data-ce-key="155">
<iframe class="embed-responsive-item" src="http://www.atnyla.com/library/html/list-of-heading.html"></iframe>
</div>

Explanation

HTML Headings

Headings are defined with the 

 to 
 tags.

 defines the most important heading. 
 defines the least important heading.

How to learn from this program

First read the algorithm, then study the program code line by line. After that, compare the code with the output and finally go through the explanation. This approach helps learners understand both the logic and the implementation properly.