1. Semrush
  2. Blog
  3. SEO
  4. On-page SEO

What Is On-Page SEO? And How to Do It

Author:Vlado Pavlik

11 min read

March 20, 2026

Contributor: Christine Skopec

On-page SEO remains as relevant as ever for ensuring your target audience sees your content—regardless of whether users search with traditional search engines like Google or AI tools like ChatGPT.

This on-page SEO guide will detail exactly what on-page SEO is, why it matters, and the techniques you can use to optimize your content. Let’s begin.

What Is On-Page SEO?

On-page SEO is the process of improving the structure and content—like text, images, and videos—of webpages to increase their likelihood of showing in traditional and AI search results.

Examples of on-page SEO tasks include strategically placing target keywords in content and writing accurate title tags.

Why Is On-Page SEO Important?

On-page SEO is important because it helps traditional and AI search engines understand your pages and match them to relevant queries, which can improve visibility and drive relevant traffic.

Case in point: We optimized our article on backlinks by adding helpful content about backlinks’ relevance to AI search and saw performance improve as a result.

Before optimization in September 2025, our backlinks article ranked in position 5 on Google for the term “what are backlinks,” according to the Organic Rankings tool. We published our updated article in February 2026, and the article has since moved to position 2.

Organic Rankings report showing how a page moved from position 5 to 2 for a keyword, what are backlinks, after the content was updated.

It’s also worth pointing out that our backlinks article appears in dozens of AI Overviews.

On-Page SEO vs. Off-Page SEO

On-page SEO involves performing tasks on webpages (i.e., internally) to improve a site’s search visibility, while off-page SEO involves performing tasks outside of a site (i.e., externally) to achieve the same objective.

For example, writing unique, helpful content is an on-page SEO technique. Getting backlinks to that content is an off-page SEO technique.

Here are examples of on-page SEO vs. off-page SEO techniques:

On-Page SEO Methods
Off-Page SEO Methods
Placing target keywords strategically
Link building
Writing accurate title tags
Guest posting
Optimizing your URL slugs
Local SEO
Writing accurate meta descriptions
Social media marketing
Structuring your content with headings
Influencer marketing
Creating unique, helpful content
Digital public relations
Adding strategic internal links
Getting brand mentions
Adding external links to credible sources
Writing descriptive image file names and alt text
Optimizing for page speed
Adding schema markup

You have full control over the execution of on-page SEO tasks on your site. Which makes on-page SEO a good starting point for your SEO strategy.

How to Do On-Page SEO for Your Site: 11-Item Checklist

Do on-page SEO for your site with this 11-item on-page SEO checklist:

1. Place Target Keywords & Prompts Strategically

Place target keywords and prompts strategically in your content to signal relevance to traditional search engines, AI search engines, and users.

Content that conveys relevance through keywords and prompts is more likely to appear in search results and get clicks.

After doing keyword research (and prompt research) to identify your target terms, incorporate them in page locations like these:

This Semrush blog post demonstrates strategic keyword placement, with the “ai overviews” target keyword being included in the post’s URL slug, H1 heading, first paragraph, and H2 subheading, among other places.

A blog post by Semrush with the target keyword included in the post's URL slug, H1 heading, first paragraph, and H2 subheading.

When incorporating keywords, ensure they read as a natural part of the discussion. Don’t stuff keywords into every sentence or even every paragraph.

Analyze your keyword and prompt use with the On Page SEO Checker. To check whether you’ve added your terms in the right areas.

On Page SEO Checker showing keyword placement information, for a page, along with improvement suggestions.

On Page SEO Checker also suggests semantically related keywords you can include in your content to strengthen topical relevance.

2. Write Accurate Title Tags

Write title tags that accurately describe your pages to help traditional and AI search engines match your content to relevant searches.

A title tag is the HTML title that shows in browser tabs and that can appear in AI and traditional search results.

Accurate title tags that show in search results help users decide if your pages meet their needs. If so, they’ll be more likely to click through to visit your pages.

The title tag for a page highlighted on a ChatGPT citation and a Google SERP listing.

Follow these best practices when writing title tags:

3. Optimize Your URL Slugs

Optimize your URL slugs to be short, descriptive, and keyword-rich, so search systems and users can understand your pages’ relevance.

A URL slug is the last part of the page’s URL that identifies the page. For example, the URL slug of the “https://www.semrush.com/blog/on-page-seo” blog post is “on-page-seo.”

Optimize your URL slugs with these tips:

An optimized URL slug could look like this:

https://www.brandonsbaseballcards.com/blog/rarest-baseball-cards

4. Write Accurate Meta Descriptions

Writing accurate meta descriptions that users find interesting can help persuade users to click your page over others.

A meta description is an HTML element that provides a brief page summary. AI and traditional search engines may use or reference meta descriptions to generate snippets that show in search results:

The meta tag for a page highlighted on a Perplexity citation and a Google SERP listing.

Improve your meta descriptions with these best practices:

Here’s an example of a good meta description for a blog post targeting the “best running shoes for beginners” keyword:

"Our testers picked the 9 best running shoes for beginners. Compare specs to find your perfect shoe today."

5. Structure Your Content with Headings

Structure your pages with headings like H1, H2, H3, etc., to organize your page content into scannable sections that help users, traditional search engines, and AI search engines understand your page structure and content.

Having headings improves your pages’ chances of appearing in organic search results and getting cited in AI-generated responses. Headings also provide visual hierarchy that makes your pages easier for users to read—especially if your headings have different font sizes and colors.

A comparison of a page structured with headings and an organized visual hierarchy versus a page with unstructured content.

Here’s how to properly use headings:

Write headings—and the content that follows them—in these ways to help AI and traditional search engines extract clear answers from your pages:

6. Create Unique, Helpful Content

Create unique, helpful content that matches search intent, covers topics comprehensively, and demonstrates expertise to increase the likelihood of AI and traditional search engines showing your content.

To produce high-quality content optimized for AI search engines, take steps like:

And review and update your content regularly after publishing. Research shows that AI search engines prefer to surface pages that contain the latest information.

Add internal links that connect to other pages on your site to help users and search systems discover your content.

On-page SEO best practices for adding internal links include:

A blog post using descriptive anchor text, "internal linking mistakes", that links to a blog post covering the topic in detail.

Adding external links to credible sources that support your claims directs readers to related resources they may find helpful and builds trust.

Linking to authoritative sources is also a proven tactic for boosting AI search visibility, as researchers have found.

Follow these external linking tips:

Use a tool like Semrush’s Site Audit to find opportunities for improving external linking.

After setting up your site as a project in Site Audit, you can filter for external link issues on the site. And click “How to fix” to get recommendations for fixing these issues.

Site Audit Issues with "external" entered and "How to fix" clicked next to an issue showing more information about the issue and how to fix it.

9. Write Descriptive Image File Names and Alt Text

Write descriptive image file names and alt text to increase the likelihood of your pages appearing in image search results.

Alt text is an HTML element that describes a page’s image when the image can't be displayed or when users rely on assistive technologies to navigate the page.

An image’s file name should describe the image’s subject in general, while the alt text may provide more details.

The Pinch of Yum blog provides a good example. The file name of this image of meatball ingredients is “Ingredients-for-Swedish-Meatballs.jpg.” And the image’s alt text is “Ingredients for meatballs in a bowl before mixing.”

An image of Swedish meatballs, on a blog post, with the source code showing that it uses a descriptive file name and alt text.

Where relevant, you may add target keywords to your image file names and alt text to improve your images’ discoverability for these keywords.

More alt text best practices include:

10. Optimize for Page Speed

Optimizing for page speed (beyond optimizing images) improves SEO and AI search visibility, and it can also reduce bounce rates—the rate at which users leave a site without engaging.

If a page takes too long to load, traditional search engines may rank it lower. That can affect the page’s AI visibility, because AI search engines often rely on traditional search results to identify sources worth citing.

And users may bounce from slow pages because they can get the information they need elsewhere more quickly.

On-page methods of reducing page speeds include:

Measure your pages’ load speeds with Google’s PageSpeed Insights. This tool provides performance scores for Largest Contentful Paint (LCP)—the time your page’s main content takes to load—and a few related metrics. And also lists tactics for improving speed and the overall page experience.

Core Web Vitals Assessment on Google Page Speed Insights with the "LCP" metric highlighted.

11. Add Schema Markup

Add schema markup to your pages to help search engines better understand their content, which can lead to higher traditional and AI search visibility.

Schema is a type of structured data that provides more details about pages. Common schema types include:

Traditional search engines can use schema markup to generate rich snippets. Rich snippets display extra information on eligible traditional search result listings and make these listings more enticing for users to click.

Like this traditional search result listing, which has a review rich snippet:

A SERP listing with the review schema markup highlighted.

Use a tool like Google’s Structured Data Markup Helper to add schema to your pages. Then, use Google’s Rich Results Test to check if you’ve implemented the schema correctly.

Measure Your On-Page SEO Success

Measure on-page SEO success by tracking key AI search and SEO metrics before and after implementing optimizations, so you know what’s driving results.

Use tools to track key metrics like:

The Visibility Overview report showing metrics like mentions, citations, cited pages, and distribution by LLM for a brand.

You can access several of these tools with a Semrush One subscription. Sign up today.

Improve AI & Traditional Search Performance

with Semrush One

Try for Free

Share

Author Photo

Vlado Pavlik

Vlado is a content marketer with 10+ years of experience in SEO, content strategy, and building websites for both clients and personal projects. As Content Operations Lead at Semrush, he streamlines workflows and optimizes processes. He also played a key role in scaling content production and shaping the blog Style Guide. Previously, as Head of Content at Mangools, he led initiatives that made the blog a major driver of organic traffic. He enjoys making complex SEO topics accessible to others.

Author Photo

Vlado Pavlik

Vlado is a content marketer with 10+ years of experience in SEO, content strategy, and website building. As Content Operations Lead at Semrush, he focuses on improving content workflows, optimizing processes, and helping scale content production.

Try Semrush
Everything you need to win AI visibility and drive SEO success
Start Free Trial
Unlimited access for 7 days
Boost your digital marketing efforts
Get free trial