Headings in HTML

This page shows the headings in HTML. Body section contains the headings. Headings range from h1 to h6. Font height decreases from h1 to h6.

Sample Code is given below :

<!DOCTYPE html>
<html>
  <head>
    <meta charset = "UTF-8" />
    <meta name = "viewport" 
     content = "width = device-width,initial-scale=1.0" />
    <meta http-equiv = "X-UA-Compatible" content ="ie=edge" />
    <title>Headings</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 of the above program. headings
output of the above program. headings

One Reply to “Headings in HTML”

Leave a Reply

Your email address will not be published. Required fields are marked *