How to work with Heading in HTML

In this article I explain the Heading tags,which is used for formatting
  • 2148

Introduction

There is a special tag for specifying headings in HTML. There are 6 levels of headings in HTML ranging from h1 for the most , to h6 for the least.

<html>

<head>

    <title>HTML Example</title>

</head>

<body>

    <h1>

        Formatting Style 1</h1>

    <h2>

        Formatting Style 2</h2>

    <h3>

        Formatting Style 3</h3>

    <h4>

        Formatting Style 4</h4>

    <h5>

        Formatting Style 5</h5>

    <h6>

        Formatting Style 6</h6>

</body>

</html>

 

Output

 

Formatting Style 1

Formatting Style 2

Formatting Style 3

Formatting Style 4

Formatting Style 5

Formatting Style 6

In this example we will see that level one heading is greater than all other heading level. Level six heading is smallest of all the heading.

Ask Your Question 
 
Got a programming related question? You may want to post your question here
 

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.