HTML headings are like the titles and subtitles in a book. They help to organize your content, making it easier for people to read and understand. Headings are created using tags from <h1>
to <h6>
, with <h1>
being the most important and <h6>
the least important.
Using headings is simple. You wrap your text in one of the heading tags:
<h1>Main Heading</h1>
<h2>Subheading</h2>
<h3>Smaller Subheading</h3>
<h1>
: The main heading, usually the title of the page.
<h2>
: Used for major sections of your content.
<h3>
: Used for smaller sections under <h2>
.
If you’re writing a blog post about making coffee, you might use headings like this:
<h1>How to Make the Perfect Cup of Coffee</h1>
<h2>Step 1: Choose Your Coffee Beans</h2>
<p>Not all coffee beans are the same...</p>
<h3>Arabica vs. Robusta</h3>
<p>These are the two main types of coffee beans...</p>
<h2>Step 2: Grind Your Coffee Beans</h2>
<p>The grind size can change the flavor of your coffee...</p>
Here’s an example for an article about web development trends:
<h1>Top Web Development Trends in 2024</h1>
<h2>1. AI-Powered Websites</h2>
<p>Artificial Intelligence is changing how websites are made...</p>
<h2>2. Progressive Web Apps (PWAs)</h2>
<p>PWAs are popular because they offer a smooth experience...</p>
<h3>PWA Benefits</h3>
<p>PWAs have many benefits, such as...</p>
<h2>3. Motion UI</h2>
<p>Motion UI is about using animations to make websites more interesting...</p>
<h1>
per Page: The <h1>
tag should represent the main topic of the page. It’s best to use only one <h1>
tag to keep things clear.<h2>
after <h1>
, and use <h3>
if you need a subheading under <h2>
.<h2>
to <h3>
, not straight to <h4>
. The order should make sense.HTML headings are more than just big text—they help organize your content and make your web pages easier to read and understand. They also help search engines rank your pages better. By using headings correctly, you can make your content more effective and user-friendly.
Whether you’re creating a blog, writing articles, or building web pages, using HTML headings is a simple but powerful way to make your content better. Start using these tips, and you’ll see how headings can improve your work.
This guide explains what HTML headings are, why they're important, and how to use them effectively. It's designed for beginners or anyone looking to refresh their understanding. With clear examples and easy-to-follow tips, you'll learn how to use headings to structure your web content and improve its readability and SEO performance.