PROJECT CODE

                                            The Developers Choice!!!!
                                                                                                            Home | About Us | Contact Us

HTML TUTORIALS

Lecture7 : Headings

What is HTML Heading Tag
Heading tag implement six levels of document headings, <h1> is the most important and <h6> is the least. A heading tag briefly describes the topic of the section it introduces. Heading information may be used by user agents, for example, to construct a table of contents for a document automatically.
How to use HTML Heading Tag
Heading tags, as their name suggests, are used to differentiate the heading of a page from the rest of the content. These tags are also known to webmasters as HTML header tags, head tags, heading tags and SEO header tags. The most important heading tag is the h1 tag and least important is the h6 tag. In HTML coding the header tags from h1 to h6 form a hierarchy. This means that if you skip any of the tag numbers (ie. jump from 1 to 3) the heading structure will be broken, and this is not ideal for on-page SEO.

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

How to implement HTML Heading Tag
Example :
<!DOCTYPE html>
<html>
<body>

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

</body>
</html>


Output :

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6
   
All Rights Reserved with Project code