HTML Basics

Heading Tags

Posted on 30th April 2013

Heading: <h1> to <h6>

Heading tags are placed inside the body section of the HTML and are used to display text as heading. There are 6 different heading tags - <h1>, <h2>, <h3>, <h4>, <h5> and <h6>
h1 has the highest importance and h6 has the least importance.

Code:

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

Displayed as:

This is Heading 1

This is Heading 2

This is Heading 3

This is Heading 4

This is Heading 5
This is Heading 6

Post a comment

Comments

Nothing yet..be the first to share wisdom.