HTML Tutorial

INTRODUCTION

Edit Template

HTML Tutorial

INTRODUCTION

Edit Template

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.

				
					<h1>This is the Main Heading</h1>


				
			

<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.

				
					<h2>This is a Section Title</h2>

				
			

<h3> Tag: Third-Level Heading

The <h3> tag helps break content further within a section defined by <h2>.

				
					<h3>This is a Subsection Title</h3>


				
			

<h4> Tag: Fourth-Level Heading

The <h4> tag is smaller than <h3> and can be used for extra detail or minor topics.

				
					<h4>This is a Sub-subsection Title</h4>

				
			

<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.

				
					<h5>This is a Less Important Heading</h5>

				
			

<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.

				
					<h6>This is the Smallest Heading</h6>

				
			

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:

Scroll to Top