Skip to content

SEO for websites

On-page SEO: what it is and how to do it

On-page SEO is the work done on a page itself: title, headings, content, images and internal links. See what to optimize, in what order, and what to avoid.

By Leous · Updated · 4 min read

Cover image for the article “On-page SEO: what it is and how to do it” on the Leolinq blog

On-page SEO is everything you do on a page itself so that search engines understand it and readers find it useful: the title, headings, body text, images, URL and internal links. It is one of the three parts of SEO, next to technical SEO and off-page SEO, and the one you control completely.

This guide covers the elements that matter, the order to work through them, and how internal linking ties pages together.

On-page, technical and off-page

  • On-page works at the level of each page: what it says and how it is laid out.
  • Technical SEO works at the level of the whole site: crawling, indexing, speed.
  • Off-page SEO works outside the site: entity profiles and backlinks.

1. Match the search intent

Before writing a word, look at the results for the keyword. Are they guides, product pages, comparisons or definitions? A page that does not match what searchers want will not rank, however well it is optimized.

One page targets one main topic. If two pages target the same query, they compete with each other.

2. Title tag

The title tag is the strongest on-page signal and the headline in search results.

  • Put the main keyword near the front.
  • Keep it under about 60 characters so it is not cut off.
  • Say what the page offers. A clear title earns more clicks than a clever one.
  • Every page has its own title.

3. Meta description

The description is not a ranking factor, but it affects whether people click. Summarize the answer in about 150 characters. Google may show other text from the page, yet a good description is still used often.

Drawing of a Google results page for the query on-page seo
The URL, the title tag and the meta description are what a searcher sees before clicking.

4. URL

Short, lowercase, hyphenated, readable: /blog/on-page-seo/ rather than /p?id=4821. Do not change a URL that already ranks unless you have to, and redirect the old one when you do.

5. Headings

  • One H1 that states the topic of the page.
  • H2 for main sections, H3 for sub-points, in order.
  • Headings describe the section. They are not a place to repeat keywords.
Tree diagram of the heading hierarchy
A page has one H1 for its topic, H2 for the main sections and H3 for sub-points inside each section.

A reader should be able to understand the page by scanning the headings alone.

6. Content

  • Answer in the first paragraph. State the definition or the conclusion, then explain.
  • Cover the topic fully: the questions a reader would ask next.
  • Write from experience. Examples, numbers and screenshots of your own. See E-E-A-T.
  • Use the words people use, naturally. Keyword density is not a target.
  • Keep it current. Update dates, steps and figures that have changed.

Length follows the topic. A page should be as long as the answer needs.

7. Images

  • Descriptive file names and alt text that says what the image shows.
  • Compressed, in a modern format, at the size they are displayed.
  • Width and height set, so the layout does not jump.

Internal links are links between pages on the same site. They do three jobs: help Google discover pages, show which pages matter most, and lead readers to the next step.

  • Link from related pages with anchor text that describes the target. “On-page checklist” tells more than “click here”.
  • Link up and down a cluster. Each article links to its pillar page, and the pillar links to every article. See topical authority.
  • Link to pages that sell. Articles should point to the relevant service or product page.
  • No orphan pages. Every page has at least one internal link pointing to it.
  • Fix links to redirected or deleted URLs.

Unlike backlinks, internal anchor text can be exact and descriptive without risk. Just do not use the same anchor for different pages.

9. Structured data

Schema tells Google what kind of thing a page describes: an article, an organization, a product. It does not raise rankings directly, but it helps Google understand the page and can add detail to the result. See schema markup.

Key point On-page SEO is making it obvious, to a person and to a crawler, what a page is about and why it is the right answer.

A working order

  1. Check intent and choose one main topic per page.
  2. Write or revise the content.
  3. Set the title, H1 and headings.
  4. Write the meta description.
  5. Add images with alt text.
  6. Add internal links to and from the page.
  7. Add schema where a suitable type exists.
  8. Check the page on a phone.
Drawing of a route “Seven steps for one page, in order” with numbered milestones
A working order for optimizing one page, from checking intent to adding schema.

What to avoid

  • Keyword stuffing, in text, headings or alt attributes.
  • Several pages on one topic that split signals between them.
  • Titles that promise what the page does not deliver.
  • Thin pages written to target a keyword and nothing more.
  • Hidden text.
  • Chasing a green score in a plugin. The score is a hint. Readers decide.

How to tell if it worked

In Search Console, compare the page before and after: impressions, clicks, average position and the list of queries it appears for. Allow three to four weeks after a change. How to read click-through rate for a page is covered in CTR and bounce rate. Which numbers to watch is covered in SEO reporting and KPIs.

Frequently asked questions

How long does on-page SEO take to show results?

Google has to recrawl the page first, which takes days to weeks. Clear changes in position usually show within a month.

Is on-page SEO enough to rank?

For low-competition queries it can be. For competitive ones the page also needs authority from outside, which is where backlinks come in.

There is no fixed number. Link wherever it helps the reader, and make sure every important page receives links from several related pages.

On-page work is part of every full-service SEO project. If you want someone to review your key pages, send your domain for a free audit.

Further reading

Official documentation and reference pages on this topic:

Keep reading More on entity, and backlinks.

Want this done for your site?

Send your domain. We reply within one working day with a first look at your site and a clear quote.

Get a free audit