View video tutorial

HTML Headings


<h1> - <h6> signifies the document heading or content heading.

HTML Heading

Main heading or most important heading uses <h1>

Sub heading or heading under main heading uses <h2>, and so on.

Search engine uses headings to structure html document and identify the content.

To highlight a title of a content headings are used.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.


<!DOCTYPE html>
    <title>HTML Heading Example</title>
    <!--Example: Heading-->
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <h3>Heading 3</h3>
    <h4>Heading 4</h4>
    <h5>Heading 5</h5>
    <h6>Heading 6</h6>
Try it Now »

Click on the "See output" button to see how it works.