H1 Tags: What Are They, Best Practices, and Examples

Written by Ankit VoraIn collaboration with Semrush

The H1 tag is an HTML heading tag usually used to mark the main title or highlight the primary subject of a webpage.
It comprises an opening <h1> tag, the title text, and a closing </h1> tag.
Here’s an example of an H1 tag in one of our blog post’s HTML code and how it looks on the live page.

The H1 tag is the most important header tag among other headers (H1-H6).
It is purely an HTML element; however, you can style it using Cascading Style Sheets (CSS) to improve its visual presentation on the webpage.
So you might see other HTML elements inside the H1 tag.
For example:
<h1>7 Link Building Services That Actually Work</h1>
As mentioned before, the H1 tag is used for creating the main title or highlighting the primary keyword of a webpage.
However, its purpose extends beyond just that.
Using an H1 tag, along with other HTML tags, provides you with a clear and structured way to organize the content on your webpages. Helping both search engine crawlers and your readers understand the structure and flow of the page.
Let’s better understand why H1 tags are important for search engine optimization (SEO).
How to Add an H1 Tag to a Website Page
Here’s how you can add an H1 tag to a website page across different content management systems (CMS).
How to Add an H1 Tag in WordPress
Most WordPress themes automatically assign H1 to the page title for both blog posts and other website pages.
For instance, one of our blog post’s page titles is “17 Ways to Get More YouTube Subscribers.”
WordPress has automatically assigned this title the H1 tag.
<h1>17 Ways to Get More YouTube Subscribers</h1>
Similarly, WordPress has automatically assigned the H1 tag to our homepage title, “Where SEO best practices meet real-world results.”
<h1>Where SEO best practices meet real-world results</h1>
You can still add/modify header tags, including H1 tags, directly from the WordPress editor.

How to Add an H1 Tag in Wix
Wix automatically assigns your page title the H1 tag for blog posts.
And doesn’t let you add more H1 tags directly. However, you can add multiple H1 tags (even though it’s not recommended) in blog posts by custom-coding them.
To add an H1 tag to other website pages, click the text you want to assign H1.
Select “Edit Text.”

Click the drop-down menu icon under “Style” and choose the heading as “Heading 1.”

How to Add an H1 Tag in Squarespace
Squarespace automatically assigns blog post titles the H1 tag.
For other website pages, select the text you want to assign H1.
Then, you’ll see a toolbar with multiple formatting options.

Click the drop-down menu section on the extreme left of the toolbar.
From the drop-down menu, select “Heading 1.”

And you’re done.
How to Add an H1 Tag in HTML
To add a basic H1 tag directly to a page’s source code:
Use an opening <h1> tag, enter your page title, and add a closing </h1> tag.
Like this:
<h1>Where SEO best practices meet real-world results</h1>
4 H1 Tag Examples For Inspiration
The Backlinko team has made it a practice to add H1 tags to all our website pages—from homepage to blog posts to guides.
Here are some examples:
1. Homepage
Source code:
<h1>Where SEO best practices meet real-world results</h1>
How it appears on the webpage:

2. About Page
Source code:
<h1>Want higher rankings and more traffic?</h1>
How it appears on the webpage:

3. Ultimate Guide
Source code:
<h1><strong>On-Page SEO:</strong> The Definitive Guide</h1>
How it appears on the webpage:

4. Blog Post
Source code:
<h1>7 Link Building Services That Actually Work</h1>
How it appears on the webpage:
