HTML Headings

Heading tag is used to display different types of headings in document.

HTML defines six levels of headings. The heading elements are H1, H2, H3, H4, H5, and H6 with H1 being the highest level and H6 the least.

A heading element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the heading.

Heading Breakdown

Here is the breakdown of HTML Heading

Heading Example

Below example will demonstrate the basic architecture of HTML Headings.

<!doctype html>  
<html>
 
    <head> 
        <title>Heading Example</title> 
    </head>
  
    <body> 
        <h1>This is a top level heading
        <h6>This is a last level heading
    </body>

</html>