Press "Enter" to skip to content


HTML Heading Tag

HTML heading tags (H1 to H6) are used to define the different levels of headings in an HTML document. The headings are used to structure the content into different sections, making it easier for the reader to understand and follow the content.

HTML Heading tag has six level H1 to H6. H1 is the top level H6 is the lowest heading level.

HTML web page mean Heading (title and subtitle) can be define using HTML HeadingĀ  tag.

Here’s an example of using heading tags:

Example for HTML Heading Tag

<!DOCTYPE html>
    <title>Example of HTML Heading Tags</title>
    <h1>This is a main heading</h1>
    <p>This is some introductory text to the main heading</p>
    <h2>This is a subheading</h2>
    <p>This is some text related to the subheading</p>
    <h3>This is a sub-subheading</h3>
    <p>This is some text related to the sub-subheading</p>

In the example, there are three levels of headings (H1, H2, and H3), each one representing a different level of importance in the structure of the content. It’s important to use heading tags correctly to ensure that the content is properly structured and accessible to all users, including those using assistive technologies.