HTML Heading

The Heading tag briefly describes the document in short. HTML has six levels of headings of different size. <h1>, <h2>, <h3>, <h4>, <h5> and <h6>. <h1> is the largest heading and <h6> is the smallest heading.

Example of HTML Heading

<html>
<head>
<title>Heading Tags</title>
</head>
<body>
<h1>This is the h1 heading tag.</h1>
<h2>This is the h2 heading tag.</h2>
<h3>This is the h3 heading tag.</h3>
<h4>This is the h4 heading tag.</h4>
<h5>This is the h5 heading tag.</h5>
<h6>This is the h6 heading tag.</h6>
</body>
</html>    

Output of the above code-

This is the h1 tag heading.

This is the h2 tag heading.

This is the h3 tag heading.

This is the h4 tag heading.

This is the h5 tag heading.
This is the h6 tag heading.






Read more articles


General Knowledge



Learn Popular Language