Menu ▼

Previous Next

<h1> To <h6> :

<h1> To <h6> tags will represent the heading with different sizes. <h1> will represent the heading with very big font size and <h6> will represent the heading with small font size compare to othere heading tags.

Syntax :

<h1>Header tag 1</h1>

<h2>Header tag 2</h2>

<h3>Header tag 3</h3>

<h4>Header tag 4</h4>

<h5>Header tag 5</h5>

<h6>Header tag 6</h6>


Example :

<html>

<head>

    <title>HTML Tutorial</title>

</head>

<body>

    <h1>

        Heading by using Header tag 1</h1>

    <h2>

        Heading by using Header tag 2</h2>

    <h3>

        Heading by using Header tag 3</h3>

    <h4>

        Heading by using Header tag 4</h4>

    <h5>

        Heading by using Header tag 5</h5>

    <h6>

        Heading by using Header tag 6</h6>

</body>

</html>


Output :
HTML Tutorial

Heading by using Header tag 1

Heading by using Header tag 2

Heading by using Header tag 3

Heading by using Header tag 4

Heading by using Header tag 5
Heading by using Header tag 6
Previous Next




Search dotnetlearners.com