Tuesday, May 31, 2011

Use of Heading Tags with Example

Why we use large text when we write any document, any assignment, any article, or design any advertisement banner etc? Just because to gain the focus of user (viewer attention) on that particular section. To make those section more comprehensive for the user attention.

Same here in Web page, we use Heading Tags (h1, h2, h3, h4, h5, h6) to make formatting of contents in  properly manner, and to gain proper attention of the website users.

One point to remember for further coming post for you all is:
Every content will be defined in <body>...</body> section of an HTML document (HTML Page, Web Page).

Example:


<html>
<head><title>First Web Page</title></head>
<body>
    <h1>Heading Text using h1 tag</h1>
    <h2>Heading Text using h2 tag</h2>
    <h3>Heading Text using h3 tag</h3>
    <h4>Heading Text using h4 tag</h4>
    <h5>Heading Text using h5 tag</h5>
    <h6>Heading Text using h6 tag</h6>
</body>
</html>


Output:

No comments:

Post a Comment