On-page SEO
What is on-page SEO?
On-page SEO is the practice of optimising the content and HTML of individual pages so search engines understand them and searchers choose them. It covers the main text, the title tag, meta description, headings, URL, images and internal links, and how well the page answers the search intent behind its target keyword.
On-page SEO sits between the other two parts of SEO. Technical SEO makes sure the page can be crawled and indexed at all. Off-page SEO builds the reputation that comes from elsewhere. On-page SEO is everything you control on the page itself, and it is usually the fastest of the three to change.
The most important on-page factor is content that matches search intent. If people searching “best running shoes” want comparisons, a single product page won’t rank however well its tags are written. After intent come the signals that help Google read the page: a descriptive title, a clear H1, logical subheadings, the topic’s key terms used naturally, descriptive alt text and links to related pages.
Some on-page elements mainly affect clicks rather than rankings. The meta description isn’t a ranking factor, but a good one can raise your click-through rate. Google often rewrites both titles and descriptions in results when it thinks another wording better fits the query, so honest, specific copy tends to survive best.
On-page SEO has changed. Old advice to repeat a keyword a set number of times, or to stuff it into meta keywords, no longer helps and can look like keyword stuffing. Modern search understands synonyms and related ideas, so cover the topic thoroughly in plain language instead of chasing an exact-match density.
Why on-page SEO matters
On-page SEO tells search engines what a page is about and whether it deserves to rank for a query. Two pages with similar links can rank very differently because one answers the question clearly and the other doesn’t.
It is also fully under your control and quick to act on. You can’t make another site link to you today, but you can rewrite a vague title, add a missing section or link a new page from your strongest one this afternoon.
Good on-page work improves the visit, not just the ranking. Clear headings, useful images and relevant internal links help people find what they came for, which supports conversions as well as SEO.
How to do on-page SEO
- Choose one primary keyword per page and check the SERP to see what type of page ranks.
- Write content that fully answers that intent, with first-hand detail, examples and anything that adds information the top results lack.
- Write a unique title tag that leads with the topic and stays roughly within 50 to 60 characters so it isn’t cut off.
- Write a meta description that summarises the page and gives a reason to click, around 150 to 160 characters.
- Use one clear H1 and break the content up with descriptive H2 and H3 headings in a logical order.
- Keep the URL short and readable, with hyphens between words.
- Add images with descriptive alt text, compressed and sized correctly.
- Link to the page from related pages on your site with descriptive anchor text, and link out from it to related pages.
- Add structured data where a matching rich result exists, such as Product, Article or Recipe.
- Review the page in Search Console after a few weeks and refine the title, sections and links based on the queries it actually gets.
On-page SEO example
<head>
<title>How to Repot a Snake Plant (Step by Step)</title>
<meta name="description" content="Repot a snake plant in 6 steps: when to do it, what soil and pot to use, and how to avoid root rot. With photos.">
<link rel="canonical" href="https://example.com/guides/repot-snake-plant">
</head>
<body>
<h1>How to repot a snake plant</h1>
<h2>When to repot</h2>
<h2>What you need</h2>
<img src="/img/snake-plant-roots.webp" alt="Snake plant with roots circling the bottom of its pot" width="800" height="600">
</body>On-page SEO FAQ
What is the difference between on-page and off-page SEO?
On-page SEO covers everything on your own pages, such as content, titles, headings and internal links. Off-page SEO covers signals from elsewhere, mainly backlinks, mentions and reviews.
Is on-page SEO still important?
Yes. Search engines still need clear signals of what a page is about, and content that matches intent remains the foundation of ranking.
How many times should I use a keyword on a page?
There is no target number. Use the main term in the title, H1 and early on where it reads naturally, then cover the topic fully with related words. Repetition for its own sake doesn’t help.
Do meta keywords help on-page SEO?
No. Google has ignored the meta keywords tag for ranking since at least 2009.
Related SEO terms
A title tag is the HTML element that names a page. Google often uses it as the clickable headline in results, so it affects rankings and clicks.
A meta description is an HTML tag that summarises a page. Google may show it as the snippet under the title; it affects clicks, not rankings.
Header tags (H1–H6) are HTML headings that structure a page into sections, helping readers scan and search engines understand the content.
Internal links are links from one page on your site to another. They help visitors navigate, help crawlers find pages and spread link authority.
Content optimizationWhite hat
Content optimization is improving a page’s content so it better matches search intent, covers the topic fully and earns more clicks and rankings.
An on-page SEO checklist is a list of items to check on each page, from intent and title tag to headings, images, links and structured data.
Search intent is the reason behind a search: what the person wants to know, find or do. Matching it is one of the most important parts of SEO.
Technical SEO is making sure search engines can crawl, render and index your site, covering speed, redirects, canonicals, sitemaps and mobile.