How to use heading tag in HTML?

HTML 5 / Structuring Web Documents

453

Program:

<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>

Output:

Explanation:

HTML Headings

Headings are defined with the 

 to 
 tags.

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


This Particular section is dedicated to Programs only. If you want learn more about HTML 5. Then you can visit below links to get more depth on this subject.