Heading Tags

Creating better headings for web pages 
Tamara Hellgren
July 19, 2024
Sami Curtis, content strategist at Momentic
Home
>
Customer-led SEO
>
Beginner Writing Tips for SEO
:
Heading Tags
Descriptive headings are important signals that humans and search engines use to evaluate the content of a web page, because they provide a structured outline.

3 things to know about heading tags & SEO

  1. Headings provide a structured outline of a web page, and used by search engines and humans to evaluate the content
  2. The code>&lt;h1&gt;</code> is the most important heading to optimize, and headings 2-6 should be used sequentially for accessibility
  3. Use HTML heading tags for headings; don't manipulate text styling to make it look like a heading

Creating headings for web pages 

When you look at a web page’s HTML source code or use a scraping tool like SEO minion, you will likely see HTML heading tags ranging from code>&lt;h1&gt;</code> to code>&lt;h6&gt;</code>. Heading tags are often used by Content Management Systems (CMS) and Cascading Style Sheets (CSS) to provide font styling instructions to web browsers. Descriptive headings are also important signals that humans and search engines use to evaluate the content of a web page, because they provide a structured outline.

<div class=”post-note”>Google may also choose to display the <code>&lt;h1&gt;</code> or <code>&lt;h2&gt;</code> heading instead of the Page Title on SERPs, if the algorithm determines that a heading is a better match for an individual searcher’s query.</div>

An <code>&lt;h1&gt;</code> heading tag acts as a page’s headline. It matter-of-factly states what the page is about and is often similar to the Page Title tag (more about title tags below). Using all heading tags properly is important, but it’s wise to put some extra effort into optimizing the <code>&lt;h1&gt;</code>.

Best practices for writing <code>&lt;h1&gt;</code> tags:

  • As long as it reads naturally, the primary target keyword should be near the beginning of the <code>&lt;h1&gt;</code> tag. 
  • Beyond keyword usage, do your best to write an engaging <code>&lt;h1&gt;</code> heading. Appealing to your target audience and their emotions is key to good writing as well as good SEO.
  • Try using this headline analyzer tool to measure user engagement.
  • Generally, <code>&lt;h1&gt;</code> and <code>&lt;h2&gt;</code> tags should not be longer than 70 characters, including spaces. But if you need to exceed this limit to improve understanding, do it.

The remaining levels of heading tags—<code>&lt;h2&gt;</code> through <code>&lt;h6&gt;</code>—are like subheadings you would see in a newspaper article or outline. If your page content has multiple sections, you can separate them using descriptive <code>&lt;h2&gt;</code> heading tags. Thoughtful headings make it easier for visitors to scan a page and find the section they are looking for. These tags also provide more clues to search engines regarding a page’s content and organization.

Keywords in <code>&lt;h3&gt;</code> through <code>&lt;h6&gt;</code> tags are not typically given special consideration by search engines, but they can provide helpful context.

<div class=”post-note”>Site users with visual impairments can use screen readers to access web page content. Skipping headings or using them out of order can cause confusion!</div> 

We strongly encourage you to use heading tags to improve the readability and skimmability of a page’s content. Adding headings can be an effective way to optimize a “wall of text” page of content. Creating your headings first can guide the content writing process and make it more efficient.

Here’s an example of a heading-based outline:

Example ideal structure for a page about "Things to do in Milwaukee, WI"
Example ideal structure for a page about "Things to do in Milwaukee, WI"

Implementing headings on web pages

Best practices for using headings in web content:

  • Pages should never contain more than one <code>&lt;h1&gt;</code> level heading tag.
  • The <code>&lt;h1&gt;</code> should be the first heading on the page.
  • Use heading elements sequentially, with no gaps (i.e. an <code>&lt;h2&gt;</code> should be followed by an <code>&lt;h3&gt;</code>, not an <code>&lt;h4&gt;</code>).
  • Use HTML heading elements for all headings.
  • Don’t manipulate font size or styling to make plain text appear like a heading.
  • Whether you choose sentence case (first word capitalized) or camel case (every word capitalized), be consistent across all your headings.
Steve Kroll searching online
We apply these principles to other disciplines and incorporate them into creating content, building websites, and completing custom digital products.