On-Page Optimization
On-Page Optimization is the collection of tactics that make an individual web page rank better in search engines and convert better for the reader. Everything from the <title> tag and meta description to the heading structure, the body copy, the image alt text, the internal linking, the URL slug, the page-speed choices, and the schema markup. The part of SEO you control directly by editing the page.
The mirror image of off-page optimization (which covers links, mentions, and citations from other sites), on-page is the work that compounds. A well-optimised page gets better rankings over time with the same inputs; a poorly-optimised one leaks ranking potential every day it sits live.
The elements that still matter in 2026
The <title> tag. Still one of the strongest on-page signals. First thing Google reads, first thing a searcher reads in the SERP. Should include the primary query intent phrased in a way a human would actually click.
The H1. The page’s visible headline. Should match the title tag closely but not identically. One H1 per page - the old 2018 “multiple H1s are fine” advice was true technically but rarely optimal in practice.
Heading hierarchy. H2s structure the argument. H3s nest inside H2s. Clean semantic hierarchy helps both screen readers and search engines understand the page’s logical structure.
Meta description. Not a ranking factor; a CTR factor. Still worth writing intentionally for every indexable page.
URL structure. Short, keyword-relevant, descriptive. /blog/how-to-write-a-case-study beats /blog?p=17342. Changing URLs later is costly; getting it right the first time is free.
Body content. The single most important on-page factor. Is the content actually good? Does it match search intent? Does it answer the question the searcher asked better than the other results? This is the layer every other optimisation is in service of.
Internal links. Underrated. Internal links distribute ranking authority across the site, help Google discover and weight pages, and signal topical relationships between content.
Image optimisation. Descriptive file names, alt text that serves both accessibility and image-search ranking, appropriate sizes and modern formats (WebP, AVIF).
Schema markup. Structured data (JSON-LD) that tells search engines - and increasingly AI answer engines - what the page is about. Critical for rich results and AI-citation eligibility.
Page-speed and Core Web Vitals. The technical layer that determines whether a well-optimised page actually renders fast enough for the ranking to hold.
On-page optimisation is what Penfriend exists to get right
On-page optimization is almost the entire surface area Penfriend operates on. When we generate a glossary entry, a blog post, or a landing page, we’re writing the title, the H1, the H2s, the body content, the internal-link targets, the schema markup, and the meta description in one coherent pass - with each element informed by the others. A human writer optimising a page at every layer is slow and expensive; the model does it for every page, every time, without the layered degradation that usually happens when optimisation is added after the draft is written.
The honest caveat: good on-page optimisation needs good content. A mechanically optimised page built on weak arguments ranks briefly and then fades. The model’s job is to get both right - the underlying argument and the optimisation layer around it. When it doesn’t, the content layer is where the weakness shows up first, and where a human editor still pays off.
Where on-page work gets it wrong
Keyword density targeting. The idea that a page needs a “keyword” to appear X% of the time hasn’t been valid since roughly 2012. Modern SEO is about semantic coverage - addressing the topic comprehensively - not hitting a repetition quota.
Over-optimisation. Stuffing the primary keyword into the title, H1, first paragraph, every H2, and the meta description reads as spammy both to Google and to humans. Natural, varied phrasing wins.
Ignoring search intent. Writing a listicle for a query where Google is showing a comparison table. Writing a how-to guide when the SERP is all tool-pages. The best on-page optimisation starts by reading the current top 10 results and matching the format the SERP is rewarding.
Optimising pages that shouldn’t exist. Thin category pages with 150 words of boilerplate, tag archives generated by the CMS, duplicated location pages. No amount of on-page optimisation rescues content that isn’t worth having.
An example
A B2B SaaS company had 180 blog posts, averaging 1,200 words each, all published between 2020 and 2023. Organic traffic had been flat for 18 months. The content was well-written; the on-page optimisation was an afterthought.
The team did a content audit in two passes. Pass one: 40 posts were killed entirely (tag pages, outdated listicles, pages targeting zero-search-volume queries). Pass two: the remaining 140 posts were re-optimised - new titles informed by current SERPs, rewritten H2 structures, updated internal-link patterns, added schema markup, refreshed content where the facts had gone stale.
No new content was written in the audit. Over the following six months, organic traffic grew 220%. The content had always been capable of ranking; the on-page layer had been quietly holding it back.
Related terms
- Off-Page Optimization - the other half of SEO
- Search Engine Optimization (SEO) - the parent discipline
- Meta Description - an on-page element worth writing carefully
- SEO Audit - the review that surfaces on-page gaps
- SEO Copywriting - the writing discipline on-page work depends on
