HTML Heading

What is Heading tag?

HTML headings are titles or subtitles that you want to display on a webpage.

The <h1> to <h6> tags are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading.


Heading <h1> to <h6> tags

                                
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Your Page Title</title>
</head>
<body>
 <h1>Heading 1</h1>
 <h2>Heading 2</h2>
 <h3>Heading 2</h3>
 <h4>Heading 2</h4>
 <h5>Heading 2</h5>
 <h6>Heading 2</h6>
</body>
</html>