- Home
- /
- Heading Tags
HTML Tutorial
INTRODUCTION
HTML BASIC TAGS
INLINE & BLOCK ELEMENTS
HTML LISTS
HTML TABLES
HTML FORMS
HEAD ELEMENTS
HTML MEDIA
MISCELLANEOUS TAGS
- Home
- /
- Heading Tags
Heading Tags
Heading tags in HTML are used to organize the content of a web page. These tags help structure your content visually and semantically – making it easier for users to read and for search engines like Google to understand the page hierarchy.
There are six heading tags available, from <h1>
to <h6>
, where <h1>
is the largest and most important, and <h6>
is the smallest and least prominent. Using them properly improves both design and SEO.
<h1>
Tag: First-Level Heading
The <h1>
tag is the largest and boldest. It should be used for the page’s title or the most important headline.
This is the Main Heading
<h2>
Tag: Second-Level Heading
The <h2>
tag is slightly smaller that <h1>
and is commonly used to organize key sections of the page content.
This is a Section Title
<h3>
Tag: Third-Level Heading
The <h3>
tag helps break content further within a section defined by <h2>
.
This is a Subsection Title
<h4>
Tag: Fourth-Level Heading
The <h4>
tag is smaller than <h3>
and can be used for extra detail or minor topics.
This is a Sub-subsection Title
<h5>
Tag: Fifth-Level Heading
This tag is rarely used but can still be applied in deeply nested content structures. It’s smaller that <h4>
and is used for very specific or minor subtopics.
This is a Less Important Heading
<h6>
Tag: Sixth-Level Heading
This is the smallest and least emphasized heading. Although rarely used, <h6>
can help structure very detailed sections within a web page.
This is the Smallest Heading
Summary
Heading tags provide a clear structure to your HTML content. The <h1>
tag is meant for the page title, while <h2>
through <h6>
organize sections and sub-sections. Using them properly improves readability, organization, and SEO. Each tag has a visual hierarchy that helps guide both human readers and search engines through your content.
Here is example of all these headings:
