On-page SEO refers to the optimization techniques used in your siteâs content and HTML source code. This category of techniques is necessary whenever you create a new piece of content for your site, whether itâs a sales page or a blog post.
Here are some of the highest-leverage areas to focus on:
Keywords are one of the most misunderstood aspects of SEO.
A few years ago, many websites repeated their target keywords throughout their pages for higher SERP rankings. This strategy, called keyword stuffing, no longer works because Googleâs algorithms have evolved to use natural language processing; they donât just match search queries with content based on keywords.
That said, research shows content tends to do better in search results when its target keyword is included in some important locations. These include:
For info about keyword research for content creation, check out our Editorial/SEO lesson.
A URL that accurately describes what content on your page is about helps both humans and search engines. Hereâs the ideal format:
www.example.com/category-keyword/subcategory-keyword/primary-keyword
Keep it simple and concise, and separate keywords with hyphens. Below are a few examples.
Well-optimized URLs
Poorly optimized URLs
A title tag is the HTML snippet that specifies a web pageâs title on SERPs.
Including your target keyword in the title tag helps both search engines and humans understand what your page is about. But all of your competitors will do the same, so you need to find ways to make your title more interesting and get users to click. Consider adding some emotionâbut donât go overboard and write clickbait.
Some examples:
Ideally, title tags should be under 60 characters so they arenât cut off. Use Mozâs Title Tag Preview tool to see how yours will appear.
The meta description is the longer snippet of info that appears underneath the title tag in SERPs. You can set it yourself, but Google often generates its own description to show more relevance to a userâs query.
Like your title tag, focus on writing compelling copy that attracts usersâ attention. Think of the description as an organic ad to encourage clicks. Donât repeat the same description across multiple pages.
Subheadings are the section headers that break up your content, formatted like so:
Theyâre arranged in a hierarchy, with a single h1 as the title of your content, then h2s at the top, followed by h3s, h4s, and so on. (Not to be confused with the title tag, the h1 tag doesnât appear in SERPs.)
Donât stuff your keywords into every subheading. Instead, think of your content and target keywords from a readerâs perspective and in terms of your contentâs usability. Where does it make sense to naturally include your target keywords? What related keywords help support what your content is about?
For example, HubSpotâs high-ranking post about customer experience uses this structure:
As with the other page elements mentioned above, you should include your keywords naturally in your body content.
Thereâs no such thing as an ideal keyword density. Instead, focus on creating thorough and genuinely helpful content about your target keywordâwhat users are reasonably looking for in their query.
Links are a central part of SEO. From an on-page perspective, you should include both internal and external links within your content.
Internal links help define your siteâs hierarchy and architecture by telling Google which web pages are most important on your site. For example, a link to your homepage in your navigation menu and footer on every page shows that itâs more important than your blog posts.
From a usability perspective, internal links also help keep users on your site for longer. Ideally, visitors would explore and browse through your content rather than navigate elsewhere.
To get internal link suggestions, use Ahrefs Site Auditâs Link opportunities feature. It shows relevant anchor text on your site that could be linked to another pageâencouraging users to continue browsing your site.
Your website shouldnât only have internal links, though. Link externally to helpful references and trustworthy resources related to your content. These enhance your siteâs authority and also help Google understand what your content is about.
Link optimization depends not just on where links take users, but also the actual text used, known as anchor text.
A few tips for optimizing your anchor text:
For links with special circumstances, you can add relationship attributes in their HTML tags. These attributes tell Google which links are deserving of something called link equity.
Link equity describes the value that links pass from one page to another, like a currency that Google uses to understand which sites are good quality. Google awards the most link equity to web pages that naturally earn links without asking or paying for themâweâll dive into this in more detail in our lesson about off-page SEO.
You usually add attributes to external links that youâve included in your content because of special circumstances:
You can use multiple attributes for a single link.
Important note: Link attributes also apply to external links that point to your site, known as inbound links. While a nofollow link to your site tells Google not to pass link equity, itâs not bad for your site. Many case studies show that nofollow inbound links can positively impact a websiteâs SEO. For some top-ranking content, as much as 20% to 40% of their backlink profiles are nofollow links.
To find out whether a link on any website has any relationship attributes, highlight its anchor text, right click, and select Inspect to look at its source code.
Whenever possible, include jump links in your content. These are internal links that take users to a specific part of a web page. You can create them by assigning that specific location with an ID and using a # in your link:
<a id="link-destination">where your link takes users</a>
<a href="#link-destination">jump link</a>
Jump links are often used in tables of contents and make your content more easily navigable, especially long pieces of content. Check out how Buffer formats its guides with a sticky table of contents.
From an SEO perspective, jump links help tell Google what your content is about. They may also appear in SERPs, giving additional info to users and making your content more enticing.
Another perk of including jump links, specifically in a table of contents: You can use a heat mapping tool like Hotjar to find out where users are clicking most often. Based on this info, you could reorganize your content to place this info more prominently, or add CTAs to those specific sections.
Images (and other forms of media like video) make a website more engaging than if it were purely text, but you need to optimize these assets for a better page experience. Hereâs how.
Google looks at a websiteâs E-A-Tâthe expertise, authoritativeness, and trustworthiness of its creatorâto evaluate its quality. This is why articles from Mayo Clinic rank higher than no-name websites prescribing unverified medical advice.
Some SEOs have observed that including author bios with their degrees/certifications can lead to a ranking boost. This doesnât mean Google ranks sites based on author reputation, though. Itâs possible users viewed a site more credibly and were more likely to share it if author info was included.
The point here: Author info provides transparency to readers and builds your brandâs credibility.
Even if you donât have a specialized degree, having an author bio builds trustâmore than an authorless piece of content would. Googleâs Quality Rater Guidelines even acknowledge that not all topics require formal expertise. For example, detailed restaurant or product reviews can be high quality even if they donât come from food critics or product experts.