The following code shows an Example of Headings in HTML.

Basically, the HTML offers the heading tags to display the headings on a web page. There are six headings – <h1>, <h2>, <h3>, <h4>, <h5>, <h6>. These headings displays the enclosing text in predefined font, and the font size. As can be seen in the output, the <h1> tag creates the largest heading. Whereas the <h6> tag creates the smallest heading.

<html>
  <head>
     <title>Headings</title>
  </head>
  <body>
     <h1>programmingempire.com</h1>
     <h2>programmingempire.com</h2>
     <h3>programmingempire.com</h3>
     <h4>programmingempire.com</h4>
     <h5>programmingempire.com</h5>
     <h6>programmingempire.com</h6>
  </body>
</html>

Output

The Browser showing an Example of Headings in HTML
The Browser showing an Example of Headings in HTML

Further Reading

HTML Examples for Beginners

Introduction to Django Framework and its Features

Django Practice Exercise

Installing Django on Windows

Examples of Array Functions in PHP

Basic Programs in PHP

Registration Form Using PDO in PHP

Inserting Information from Multiple CheckBox Selection in a Database Table in PHP

programmingempire

princites.com