SAVE 80% OFF on Digital Marketing Full Course
Each page or post can have multiple headings. The <H1> HTML tag is usually used for the title of a page or post, and it is the first header visible on a page. The formatting of an h1 usually differs from the rest of the header tags found on a page (h2, h3, h4).
In this post, you will learn what is a <H1> tag, why it is important for SEO, and how to write a header tag that is both SEO and user-friendly.
- What is an H1 tag?
- Why is an H1 tag important for SEO?
- H1 Tag SEO Best Practices
- Examples of h1 tags
- What about h2, h3, and h4 tags?
- What are HTML heading tags?
- What else can you do to improve your SEO?
What is an H1 tag?
The <H1> HTML tag is the first header tag visible on a page. It is used for the title of a page or post. When viewed in HTML code, the H1 value is enclosed in <h1></h1> tags.
To make the text stand out, the H1 tag is usually formatted differently than the rest of the page tags.
Look at the example below.
The H1 tag has the value of “On-Page SEO” and when viewed in HTML, it looks like this:
The easier way to understand the use of the H1 tag is to imagine that you are writing an outline of a large document. The main title of your document will be your <H1>, your main points the <H2>, and sub-points the <H3>.
H1 Tag Vs Page Title
One of the most important elements for SEO purposes is the title tag (<title></title>) which it should not be confused with the H1 tag.
Let’s see below how these two differ and why you should care.
The main differences between the two are:
- The title tag is shown in the SERPS (search engine result pages). It is used as the main heading of the snippet in the search results.
- The title tag is not shown visually on a page, but it is part of the page header <header></header>, and it is also shown in the browser title.
- The <H1> tag is shown to users while browsing a page.
- The title tag is a strong signal to search engine crawlers about what the page content is all about.
When it comes to on-page SEO, the page title is more important than the H1 tag but for best results, you should optimize both.
Why is an H1 tag important for SEO?
One of the most complicated tasks of search engines is to understand the meaning (context) of a page.
To do that in the most efficient and fastest way, they use data from different signals.
One of those signals is the page title, and another one is the H1 Tag.
When crawling the content of a page, search engine spiders read the HTML code and try to identify which sentences are enclosed in heading tags (h1, h2, etc.).
They consider these as indicative of the page content.
So, using keywords in your H1 tag, you help search engines understand what your page is all about.
Another reason why headings are important for SEO is that they make it easier for users to navigate through the page.
The user can see at a glance what the page is all about by looking at the H1 tag. The rest of the headings provide a big hint to users as to what to expect in each section.
Take for example the post you are reading now, I have marked all important points as an h2 and also added a table of contents at the top which makes navigation easier.
Watch the above video to learn what the H1 tag is, why it is important for SEO, and how to optimize it.
H1 Tag SEO Best Practices
Now that the theory of h1 tags is behind us, let’s see how to write good headings for your articles or page content in general.
- The H1 tag should be the same or slightly different than the page title
- Use keywords in your headings
- Avoid very long headings
- Make sure that your H1 tag is visible and not hidden to users
- Style your H1 tag differently than the rest of the headings
- Use headings in a hierarchical manner
- Use only one h1 tag per page
- H1 tags should match the user intent
The H1 tag should be the same or slightly different than the page title
In the majority of cases, the page title and h1 tag are the same. This is because CMS (like WordPress), is configured this way.
This is perfectly fine. It’s not an SEO mistake, to have the same text for the page title and h1 heading, on the contrary, it is recommended.
As a general guideline, keep the page title and H1 tag the same or closely related. Google recommends the following:
In the example shown at the beginning of this post, the page title is “On-Page SEO Techniques” while the H1 tag is “On-Page SEO”.
The page title is more descriptive because it is shown in the SERPS but for the page heading, I wanted something simpler.
How to provide for a different h1 and page title?
I mentioned above that most themes and web development platforms are configured to use the same value for the page title and h1 tag and this is usually what you specify as the title of a page or post.
If you want to change it and have different values then you can either edit your HTML code or if you are on WordPress to use a plugin such as Yoast SEO.
As you can see in the screenshot below, when you install Yoast SEO, there is an extra area below each page/post where you can set the page title.
Use keywords in your headings
It is highly recommended to use keywords in your headings. As explained in my SEO tutorial for beginners, keywords should be included in both the title and headings.
If you choose to have a different title and a different heading then you can use your main keyword in the title and a related keyword in the H1.
Of course, that does not mean that you should cross the line and start creating keyword-stuffed headings. Based on the results of your keyword research, you can select which keywords to use.
As a rule of thumb, long-tail keywords are great candidates to use in your H1 and other headings.
Avoid very long headings
Don’t make your headings too long. Use short but descriptive headings. Use the same length guidelines as the page title i.e., less than 65 characters.
If you need to provide a longer description, then you can use a short heading and then bold text to give more information as shown in the example below from Google AdSense.
Make sure that your H1 tag is visible and not hidden from users
Many WordPress themes have the h1 tag in the HTML of the page but they hide it (using CSS) for users. This is not a good SEO practice.
Check that your theme outputs the H1 tag correctly and that is visible on the page.
The easiest way to do this is to view the source of a page (right-click and select VIEW SOURCE) and search for H1.
What you see enclosed in <h1></h1> should also be visible on the page.
Style your H1 differently than the rest of the headings
Make your h1 stand out. Make the letters bigger than the rest of the text and headings.
Use headings in a hierarchical manner
I mentioned above that you should approach headings the same way as writing an outline for a book or long-form document.
What is important for SEO is to have your tags in a hierarchical manner otherwise you can confuse both search engines and users.
In other words, your <h1> should be on top of the HTML Code and the rest (h2, h3, etc) to follow in that order.
Notice in the example above how the font size changes as you move down the hierarchy.
Use only one H1 tag per page
Best SEO practices indicate that there should be only ONE h1 tag per page. This is because it makes more sense and this is what you should aim for.
In cases though that you end up having multiple h1 tags on a page, this is not the end of the world. If you can correct the situation then do it, otherwise, leave it as it is.
Here is a video from Google about the use of multiple h1 tags per page.
H1 tags should match the user intent
Don’t forget about the user intent when writing your h1. If this does not match with the user expectations then they may leave your website without even reading the content.
If this happens you are not only losing customers or potential readers, it’s also bad for your SEO.
This behavior of users visiting a website and then returning back to the search results because they were not happy is known as pogo-sticking and can negatively affect your rankings in the long term.
Make sure that your h1 gives users what they expect to see on the page.
Examples of H1 tags
Let’s review some nice examples from websites that are having optimized H1 tags, to help you understand how the above principles can be applied to practice.
The heading h1 tag is optimized for users, while the page title is shorter and SEO-friendly.
For known brands, heading 1 (for the home page) can match the brand name while the page title can include keywords.
It is perfectly fine to use the same value for the page title and heading.
What about h2, h3, and h4 tags?
To avoid any confusion, let me clear something out. All the principles explained above are applicable for all header tags and not just the H1.
In addition, please note the following:
- Don’t use heading tags when other tags such as bold or italic are more appropriate.
- Don’t overdo it with the use of headings. Use headings when it matters for structure, navigation purposes and to make the page content easier to read.
- You don’t have to use all heading types on a page. You can have the h1 and only h2s, depending on the length and type of your content.
- Having a balance between the use of headings and other formatting elements is always the best approach.
What are HTML heading tags?
In HyperText Markup Language (HTML), which is the language used to display webpages in a browser (regardless of the CMS platform), there are various tags that can be used to create headings in a document.
It’s very similar to creating headings in Microsoft Word. When you want a particular text or sentence to stand out, you can set its style to be heading 1, heading 2, etc.
Headings in a Word document can be used to break up a document into different parts or as a guide for creating a table of contents.
In general, they make a document easier to read by breaking up a large document into smaller parts, each part having a heading that has different formatting (larger text, bold, etc.), than the rest of the document.
HTML heading tags work the same way.
When you highlight a sentence in the WordPress editor and set it to Heading 1, the system adds the following code in the HTML:
<h1>This is an H1 heading</h1>
This tells the browser to format that sentence in a different style (defined by the CSS classes) of your theme.
Look at the example below:
When you set the heading as H2 or H3 the HTML changes to:
<h2>This is an H2 heading </h2>
<h3>This is an H3 heading </h3>
So, HTML heading tags are pieces of HTML code that are used to specify the headings of a page.
What else can you do to improve your SEO?
SEO, which is a component of Search engine marketing, is about providing users with a great experience, and one of those users is a search engine which in turn is trying to offer the best experience for their users.
Usually, with SEO you try to fix a lot of small things that independently may seem not that important, but when combined together, they can improve your search rankings.
So, besides optimizing the h1 tag, here is a list of other things vital for SEO success.
- Review technical SEO and make sure that search engines can access, crawl, and index your website without any issues.
- Configuring your website to use SEO friendly URLs for your posts and pages
- Creating high-quality websites providing a great experience for users
- Writing high-quality SEO friendly content that offers great value to users
- Connecting your content together using internal links to create your own small web, making it easier for users to discover more pages from your website.
- Promoting your website using solid practices to get links from other websites on the Internet (this is also known as natural link building).
Your SEO efforts don’t start and end with H1 tag optimization. Optimizing the headings, it’s one of the things you need to do, but certainly, it’s not the end of it.
Unlike other SEO factors, the h1 tag is something you can control and, if optimized correctly, can make a difference in your rankings.
If you feel confident from what you have read above, the next step is to perform an H1 Audit of your website and identify the h1s that need to be optimized.
Tools like SEMRUSH can make your job much easier since they can pinpoint which pages have no h1 tags defined and which pages have duplicate h1 tags, and also give you recommendations on how to optimize them.
Why is h1 tag important for SEO? ›
H1s are a good indicator of what the most important text on a page is. As they are usually the most visually notable content on the page, a good H1 can ensure clarity for the reader. It's important to remember that SEO can often be about user optimisation as well as optimisation for search.Are h1 and h2 tags important for SEO? ›
They are important to SEO because they allow search engine crawlers to quickly determine the intent of your content. This allows users to find what they are looking for by driving them to your site. Much like h1 tags outline page content, h2 tags, h3 tags, h4 tags, h5 tags, and h6 tags do the same for subsections.What is the purpose of h1 tag in HTML? ›
Definition and Usage
The <h1> to <h6> tags are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading. Note: Only use one <h1> per page - this should represent the main heading/subject for the whole page.
1. Title Tags. The title tag is your main and most important anchor. The <title> element typically appears as a clickable headline in the SERPs and also shows up on social networks and in browsers.Which header tag is more important for SEO? ›
The most important heading tag is the h1 tag and least important is the h6 tag. In HTML coding, the heading tags from h1 to h6 form a top-down hierarchy. This means that if you skip any of the tag numbers the heading structure will be broken, which is not ideal for on-page SEO.How many h1 tags do I need for SEO? ›
Your website should have only one h1 tag. If you have more than one h1 tag on a page, change the other h1 tags to an h2 or h3. Your h1 tag should be at the top of the page content (above any other heading tags in the page code).What is the purpose of using the tag h1 and H2? ›
To break it down, remember: H1 = Main keywords and subject matter, what the overall post is about. H2 = Sections to break up content, using similar keywords to the H1 tag. H3 = Subcategories to further break up the content, making it easily scannable.Are h1 tags a Google ranking factor? ›
They still help Google determine the relevance and semantic structure of a webpage. They inform the algorithm's understanding of what the page is about, who it's for, and why it is/is not the best answer for any given query. Mueller has confirmed that headings are a Google ranking factor.Does multiple h1 hurt SEO? ›
If your page is currently using multiple H1 tags, it won't hurt your Google ranking (regardless of what automated SEO audit tools tell you). For clarity and user experience, however, be sure that they follow the proper heading hierarchy.