Heading Tags

 Heading tags are used to create headings ,subheadings.

Heading tag gives boldness and varying size.

There are six types of heading tags:

  1. <h1>....</h1> - size in pixels is 32px.

    Heading 1

  2. <h2>....</h2> - size in pixels is 24px.

    Heading 2

  3. <h3>....</h3> - size in pixels is 18.7px.

    Heading 3

  4. <h4>....</h4> - size in pixels is 16px.

    Heading 4

  5. <h5>....</h5> - size in pixels is 13.2px.
    Heading 5
  6. <h1>....</h1> - size in pixels is 10.7px.
    Heading 6
Heading Preference
Heading preferences

Heading preferences from top to bottom order.

Code:


<!DOCTYPE html>
<html>
<head>
     <title>Heading tags</title>
</head>
<body>
     <h1>Heading 1</h1>
     <h2>Heading 2</h2>
     <h3>Heading 3</h3>
     <h4>Heading 4</h4>
     <h5>Heading 5</h5>
     <h6>Heading 6</h6>
</body>
</html>

Output:

Heading tags
Heading tags output


Post a Comment

Post a Comment (0)

Previous Post Next Post