DEV Community

Cover image for HEADING TAGS IN HTML
Irfan Khan
Irfan Khan

Posted on • Updated on

HEADING TAGS IN HTML

1.HEADING TAG
There are six heading tags:

  • 1st heading <h1></h1>

This is first heading tag and biggest tag.

<h1>1st Heading</h1>
Enter fullscreen mode Exit fullscreen mode
  • 2nd Heading <h2></h2>
<h2>2nd Heading </h2>
Enter fullscreen mode Exit fullscreen mode
  • 3rd Heading <h3></h3>
<h3> 3rd heading </h3>
Enter fullscreen mode Exit fullscreen mode
  • 4th heading <h4></h4>
<h4> 4th heading </h4>
Enter fullscreen mode Exit fullscreen mode
  • 5th heading <h5></h5>
<h5> 5th heading </h5>
Enter fullscreen mode Exit fullscreen mode
  • 6th heading <h6></h6>

This is last heading tag and smallest tag.

<h6> 6th heading </h6>
Enter fullscreen mode Exit fullscreen mode

ALL CODE FORMATE

<html>
<head>
<title>Title</title>
</head>
<body>
<h1>1st Heading</h1>

<h2>2nd Heading </h2>

<h3> 3rd heading </h3>

<h4> 4th heading </h4>

<h5> 5th heading </h5>

<h6> 6th heading </h6>

</body>

</html>
Enter fullscreen mode Exit fullscreen mode

Discussion (0)