Back to Glossary
SEO

On-Page SEO

On-page SEO is the practice of optimizing the content and HTML elements within a web page itself — title tags, headings, meta descriptions, body copy, URLs, internal links, image alt text — to improve search visibility. Unlike off-page SEO, which deals with signals outside the site, on-page SEO covers the parts you control and edit directly.

  • On-page SEO optimizes the content and HTML elements inside a page — the parts the site owner controls and edits directly.
  • Its core elements are title tags, meta descriptions, heading structure, body content, URLs, internal links, and image alt text.
  • It is distinct from off-page SEO, which handles backlinks, and from technical SEO, which handles crawling, indexing, and rendering.
  • Google recommends unique, descriptive titles and meta descriptions for every page, and advises representing visual content in text as well.
  • High-quality content that matches search intent is the foundation every on-page element rests on.

Overview

On-page SEO is the area of search optimization concerned with improving the content and HTML elements inside a web page to earn better search visibility. It covers everything you can control and adjust within the page itself — title tags, meta descriptions, headings (H1 through H6), body content, URL structure, internal links, and image alt text.

It matters because a page's internal signals are the primary evidence search engines use to judge what the page is about and how relevant it is. No matter how strong your backlinks or site reputation are, a page with thin content and weak structure struggles to surface for the searches it should match. As Ahrefs notes, weak content and technical foundations limit how much backlinks can do for you in the first place.

On-Page vs. Technical vs. Off-Page SEO

These three areas are often conflated, but they target different things. On-page SEO focuses on the content and HTML elements within a page, as opposed to site-wide technical factors such as crawling and indexing (technical SEO) or external backlinks (off-page SEO).

AreaScopeRepresentative elementsLevel of control
On-page SEOContent and HTML elements within the pageTitle tags, meta descriptions, headings, body content, URLs, internal links, image alt textDirectly controlled and edited
Technical SEOSite-wide technical foundationXML sitemaps, robots.txt, redirects, rendering, page speedDirectly controlled and edited
Off-page SEOSignals outside the siteBacklinks, citations, brand mentions, social signalsInfluenced indirectly (depends on external sources)

Key On-Page Elements

ElementRolePractical guidance
Title tagThe headline shown in the SERP; a relevance signalMake it unique and descriptive, keep it within roughly 50–60 characters (about 600px), and front-load the main keyword
Meta descriptionThe SERP snippet that drives click-through (CTR)Write a unique one per page, ideally within about 160 characters
Headings (H1–H6)Convey content structure and hierarchyUse a single H1 per page and break the body into meaningful subheadings
Body contentThe core of satisfying search intentProvide unique, useful information aligned with search intent, and avoid stuffing in keywords
URLA readability and relevance signal in the addressKeep it short and descriptive, and include the main keyword
Internal linksSpread discoverability and authority between pagesLink to important pages from at least one place, using contextual anchor text
Image alt textA text representation of visual contentWrite alt text that describes the image so visual information is also available as text

Evidence and Recommendations

Google Search Central explains that unique, descriptive titles and meta descriptions show search engines how relevant a page is and can lift its search traffic. Alongside using semantic HTML, Google advises that you "represent visual content in text" as well, and specifies that links must be <a> elements with an href attribute for Google to crawl them. It also notes that important pages should be linked from at least one other page on the site.

Ahrefs lists search intent, content quality, URLs, titles, meta descriptions, internal and external links, schema markup, and page UX as on-page factors, arguing that once content and technical foundations are solid, quality backlinks become the deciding factor between page two and a stable page one. Backlinko's on-page guide recommends keeping titles to 50–60 characters with the main keyword toward the front, placing the target keyword within the first 100–150 words of the body while avoiding keyword stuffing, and notes that for competitive keywords, unique content with "information gain" outperforms generic content.

Execution Checklist

  • Write a unique, descriptive title tag for every page and front-load the main keyword.
  • Write a unique meta description per page to raise SERP click-through rate.
  • Keep a single H1 and break the body into meaningful H2–H3 subheadings.
  • Write unique, useful content that matches search intent, and avoid keyword stuffing.
  • Keep URLs short and descriptive, and include the main keyword.
  • Internally link to important pages from other pages using contextual anchor text.
  • Add descriptive alt text to images so visual information is also available as text.

References

Related terms