On-Page SEO: The Complete Guide

Table of Contents

On-Page SEO by Tommaso Liu

Key Takeaways

  • On-page SEO: everything you control on a page to help Google understand and rank it
  • Title tags: the single most impactful HTML element for rankings; keep them under 60 characters
  • Meta descriptions: don’t affect rankings directly, but drive CTR; write them as ad copy
  • Header tags: signal structure to Google and readers; each H2 should answer a distinct question
  • Keyword placement: put the primary keyword in the title, H1, first paragraph, and at least one H2
  • Image optimization: file name, alt text, and compression all contribute to ranking and speed
  • Internal links: distribute authority across your site and tell Google which pages matter
  • On-page vs. off-page: on-page is what you control; off-page is what others say about you

What on-page SEO is

On-page SEO is the practice of optimizing the elements within a page so Google can understand what it covers and rank it for the right searches.

It includes everything you control directly: the HTML, the content, the structure, and how the page loads. It does not include backlinks, brand mentions, or anything happening on external sites.

Why on-page SEO matters for rankings

Google needs to read your page to rank it. If the content is unclear, unstructured, or misaligned with search intent, no amount of links will push it to position one.

On-page optimization is the foundation. Here’s what it gives you in practice:

  • Relevance signal: tells Google exactly which query your page should rank for
  • Crawl efficiency: a well-structured page gets indexed faster and more completely
  • CTR lift: an optimized title and meta description get more clicks even at the same position
  • AI visibility: generative search answers typically pull from pages Google has already understood and ranked
  • Compounding returns: on-page work done once continues to produce results without ongoing spend
  • Off-page amplification: backlinks boost pages that already work; they don’t rescue pages that don’t

Key elements of on-page SEO

On-page SEO is made up of four techniques that work together. Neglecting any one of them limits how well the others perform.

ElementWhat it covers
Content optimizationTopic depth, intent match, semantic coverage, and how well the page satisfies the query vs. current top results
HTML elementsTitle tags, meta descriptions, header tags, and image alt attributes. What Google reads before the body text.
Internal linkingLinks between your own pages that pass authority and map topic relationships across the site
Page experienceCore Web Vitals, mobile usability, and HTTPS. Controlled at page or site level, confirmed as ranking factors in Google’s Search documentation

How to optimize a page title tag

The title tag is the single most impactful HTML element for SEO. It tells Google the primary topic of the page and appears as the clickable link in search results.

  1. Keep it under 60 characters. Anything longer gets truncated in Google’s results.
  2. Put the primary keyword near the start. Google’s own guidelines recommend placing the most important terms first in the title.
  3. Write for clicks, not just crawlers. Your title competes with every other result on the page: make it specific and useful.
  4. Use one topic per title. Stuffing multiple keywords into one title weakens the signal. Pick one and own it.
  5. Don’t just copy the H1. The title tag and H1 can differ slightly. Use the title for search, the H1 for the reader.

How to write an SEO meta description

The meta description doesn’t directly affect rankings. It affects CTR (click-through rate), which does.

  1. Stay under 155 characters. Longer descriptions get cut off on mobile and desktop.
  2. Open with the outcome. Start with what the reader gets, not what the article is about.
  3. Include the primary keyword naturally. Google bolds it in the snippet when it matches the query.
  4. End with a soft action. A phrase like “here’s how” or “see the full breakdown” outperforms passive descriptions.
  5. Write a different description for every page. Duplicate meta descriptions are a missed CTR opportunity on every page they appear.

Don’t write: “Learn more about local SEO in this complete guide.”

Write: “Local SEO helps nearby customers find your business on Google. Here’s how to optimize your listing, build citations, and rank in the local pack.”

How to use header tags correctly

Header tags (H1 through H3) structure your content for both readers and Google. Each tag signals hierarchy and topic.

The rules are simple:

  1. one H1 per page that matches or closely mirrors the title tag.
  2. H2s cover major subtopics, each answering a distinct question.
  3. H3s appear only when a subsection needs its own label and the H2 content alone would exceed 150 words.

Include the primary keyword in at least one H2 where it fits naturally. Then read the H2 list in isolation. If the article makes logical sense from that list alone, the structure is correct.

Keyword placement on a page

LocationWhy it matters
Title tagFirst signal Google reads; sets the page’s topic before anything else
H1Confirms the topic inside the page itself; should match or closely mirror the title
First 100 wordsTells Google the subject immediately; don’t bury the keyword in the third paragraph
At least one H2Reinforces topical relevance within the content structure
Image alt textAdds a keyword signal in a non-text element; only use it where the description fits naturally
Body (semantic variants)Google reads for meaning; related terms and entity mentions strengthen relevance without repetition

How to optimize images for SEO

Image SEO starts before you upload anything. Follow this sequence in order.

  1. Check Google Images for the keyword. Search your target keyword and look at what images rank. This tells you what visual format and subject Google associates with the topic.
  2. Choose or create the right image. Match the format Google already rewards: diagrams, screenshots, or photos depending on the topic. Avoid generic stock photos with no informational value.
  3. Compress and convert to WebP. Use TinyPNG (paid) to batch-convert and compress multiple images at once. For individual images, Photopea lets you export directly to WebP for free.
  4. Rename the file before uploading. Use the target keyword in the filename: on-page-seo-checklist.webp, not IMG_4021.webp.
  5. Upload to your CMS. At this point the file is optimized, compressed, and correctly named.
  6. Add alt text after uploading. Write a short, accurate description of the image. Include the keyword only if it fits naturally. Alt text is read by screen readers and indexed by Google.

Internal linking strategy for on-page SEO

Internal links serve two purposes: they pass PageRank from strong pages to weaker ones, and they tell Google which topics your site covers in depth.

Every new page you publish should receive at least one internal link from an existing, higher-authority page. Don’t publish orphan pages. Google treats them as low-priority.

How to build internal links that work:

  1. Link from your strongest pages. Authority flows from the linking page, not the receiving one.
  2. Use descriptive anchor text. Name the destination topic. Avoid “click here” or “read more”.
  3. Link contextually. Place the link where it’s relevant to what the reader is already reading, not in a sidebar or footer widget.
  4. Update old articles. Every time you publish something new, go back to related existing pages and add a link to it.
  5. Don’t over-link. Three to five internal links per article is a reasonable target. More than that dilutes the signal.
RELATED ARTICLE

Link Building SEO →

On-page SEO for different content types

The same principles apply across content types, but the priority shifts depending on what the page needs to do.

Content typeOn-page priority
Blog postContent depth, header structure, FAQ coverage. CTAs should be soft and contextual.
Service pageClarity of outcome, trust signals, visible CTA above the fold. Long body copy is secondary.
Local SEO pageNAP (name, address, phone) consistency, localized keyword in title and H1, embedded Google Map, and proximity signals in the copy.
E-commerce product pageKeyword-rich titles and descriptions, structured data (schema), optimized image alt text. Duplicate content across product variants is the most common issue.
SaaS product or feature pageBenefit-first headline, feature-to-outcome framing, and intent alignment between the keyword and the page’s conversion goal.

On-page SEO tools

No single tool covers everything. The most useful ones by task:

TaskTool
Keyword research and content planningUbersuggest, Ahrefs, Semrush
Technical on-page auditScreaming Frog SEO Spider
Page experience and Core Web VitalsGoogle PageSpeed Insights
Live search performance and indexingGoogle Search Console

PageSpeed Insights, Google Search Console, and Ubersuggest’s free tier cost nothing. Start there before committing to a paid platform.

FAQs about on-page SEO

What is the difference between on-page and off-page SEO?

On-page SEO covers everything controlled directly on your site: content, HTML, structure, and speed. Off-page SEO covers signals from external sources, primarily backlinks. The two work together: on-page makes a page rankable, off-page increases how competitively it ranks.

One primary keyword per page, plus semantic variants and related questions. Targeting multiple competing keywords on a single page splits intent and typically ranks for none of them well. If two keywords have different intent, they need two pages.

Changes to well-indexed pages can reflect in rankings within days. For new pages or sites with low crawl frequency, expect two to six weeks before meaningful movement. Core Web Vitals improvements tend to show faster than content changes.

Yes. AI overviews and generative search results pull from pages Google has already indexed and ranked. A page that is not optimized for Google is also unlikely to appear in AI-generated answers. On-page SEO is the prerequisite, not the alternative.

Content relevance to search intent. A page with a perfect title tag and no useful content will not outrank a page that fully answers the query. Every other on-page element supports the content, not the other way around.

Links related to on-page SEO

Picture of Tommaso Liu

Tommaso Liu

I am an SEO and AI search (AEO/GEO) specialist focused on turning search visibility into users and revenue. Since 2018, I’ve built structured visibility and conversion systems across industries like healthcare, accounting, construction, SaaS and marketing. Results include growing a business from 13 to 81+ new customers per month through SEO, while scaling organic traffic from ~39K to 73K clicks in 6 months, and continuing to grow to 127K clicks with minimal additional work. I help local and SaaS businesses get found on Google, ChatGPT, and Gemini, then turn that visibility into real users through clear structure and conversion-focused pages.