On-page SEO is the practice of optimising the content and HTML elements of individual web pages so that search engines can understand what each page is about and match it to the right search queries. It covers page titles, meta descriptions, heading structure, keyword usage, content depth, internal linking, and image optimisation. On-page SEO works at the page level, meaning each page on your website needs to be optimised individually for the specific entity and intent it is targeting.

On-page SEO is distinct from technical SEO, which covers how a website functions as a whole, and from off-page SEO, which covers signals from other websites. On-page SEO is what you can control directly on each page: the words, the structure, the headings, and how well the content answers the specific question a searcher is asking. In Sri Lanka, most business websites have significant on-page SEO problems, including pages that try to rank for too many unrelated terms, thin content that does not fully cover the topic, and heading structures that do not match search intent.

I am Nimantha Dias, an SEO specialist in Sri Lanka. I have been working on SEO projects for businesses in Sri Lanka and internationally for over a decade. In this guide I will explain exactly what on-page SEO covers, why each element matters, and how to assess whether your own pages are properly optimised.

On-page SEO: quick reference

  • Core focus: page titles, headings, content depth, internal linking
  • Works at the individual page level, not the whole site
  • Most common issues: keyword stuffing, thin content, wrong search intent
  • Must be done on every page you want to rank, not just the homepage

Want your pages optimised for the right keywords and intent? Get in touch directly.

The Core Components of On-Page SEO

Each of the following attributes of a page affects how Google interprets what the page is about and how well it matches a given search query. A weakness in any single element limits the page’s ability to rank, even when the other elements are strong.

Page title and meta description

The page title is the single most important on-page SEO element. It tells Google and the searcher what the page is about in one line, and it appears as the clickable headline in search results. A strong page title includes the primary entity the page is targeting, is specific rather than generic, and matches the intent of the search query. The meta description does not directly affect rankings but affects click-through rate, which influences how much traffic a ranking page actually receives.

Heading structure

Headings organise the content of a page and help Google understand the hierarchy of topics covered. The H1 heading should match the primary entity the page is targeting and appear once per page. H2 headings cover the main attributes or sub-topics of that entity. H3 headings go deeper into specific details within each H2 section. A page that uses its heading structure to systematically cover the attributes of its main topic sends stronger relevance signals than one with random or decorative headings.

Content depth and topical coverage

Content depth refers to how comprehensively a page covers all the relevant attributes of its topic. A page targeting “SEO services in Sri Lanka” that only lists service names without explaining what each service involves, how it works, and what results it delivers has shallow content depth. Google compares the topical coverage of competing pages and tends to rank pages that answer the full range of questions a searcher might have, not just the headline query. This is why thin pages, even with correct keyword usage, consistently underperform against more thorough competitors.

Search intent alignment

Search intent is the underlying goal of a search query. Informational queries want an explanation. Commercial investigation queries want a comparison or recommendation. Transactional queries want to take an action. A page optimised for the wrong intent will not rank well even if its keyword usage is correct. A page about “SEO prices in Sri Lanka” needs to answer the cost question directly with specific figures, not redirect the user to a contact form without giving any pricing context at all.

Internal linking

Internal links connect pages within the same website and pass authority between them. From an on-page SEO perspective, the anchor text of an internal link is a relevance signal: it tells Google something about what the linked page is about. Links placed contextually within the body of content, where the relationship between the current topic and the linked page is genuinely relevant, carry stronger signals than links placed in navigation menus or footer lists. Every page on a well-structured site should have at least two relevant internal links pointing to it from other pages.

Image optimisation

Images on a page should have descriptive file names and alt text that accurately describes what the image shows. Alt text is the primary way Google understands image content, and it contributes to the overall topical relevance signals on the page. Beyond alt text, images should be compressed to avoid slowing down page load time, which affects both Core Web Vitals scores and user experience.

Want a full on-page SEO review of your website?

On-Page SEO Issues Common in Sri Lanka Business Websites

Most business websites in Sri Lanka share a recognisable set of on-page SEO problems. Pages are often built by web designers rather than SEO specialists, with headings chosen for visual appearance rather than relevance structure. A single page will try to rank for five or six different unrelated services at once, diluting its relevance signal for any single query. Content is frequently copied from competitors or written as generic filler rather than as a genuine explanation of the specific service offered in the specific market.

A particularly common issue is the mismatch between what the page title promises and what the content delivers. A page titled “Best SEO Company in Sri Lanka” that contains three short paragraphs and a contact form is not covering the topic at the depth required to rank for that term against a competitor page that fully explains what makes a quality SEO provider, what the process involves, and what results a business can realistically expect. On-page SEO in Sri Lanka is frequently the primary reason a well-structured site with good technical foundations still fails to rank.

On-Page SEO vs Technical SEO: What Each Covers

On-page SEO and technical SEO are both required for a page to rank, but they address different problems. Understanding which type of issue you are dealing with determines what kind of work is needed.

On-Page SEO Technical SEO
Page titles and meta descriptions Crawlability and indexing status
Heading structure and content depth Site speed and Core Web Vitals
Search intent alignment Duplicate content and canonicalisation
Internal linking anchor text Mobile usability
Image alt text and file names Structured data and schema markup

Both types of work are part of a complete SEO project. Understanding how long SEO takes to show results depends partly on how many on-page and technical issues need to be resolved before rankings can improve. The cost of an SEO project also reflects the volume of on-page work required across the site. You can read more about that in the SEO cost guide for Sri Lanka.

Ready to fix the on-page SEO issues holding your website back?

Frequently Asked Questions

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

On-page SEO covers everything you control directly on your own website: content, headings, titles, internal links, and images. Off-page SEO covers signals that come from other websites, primarily backlinks. Both affect rankings, but on-page SEO must be correct first because off-page signals cannot compensate for a page that does not clearly communicate what it is about.

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

On-page changes typically take two to eight weeks to reflect in rankings, depending on how frequently Google recrawls the page and how competitive the keyword is. Pages that are already indexed and receiving impressions often respond faster than new pages Google has not fully evaluated yet.

Can I do on-page SEO myself without a specialist?

Basic on-page checks such as verifying page titles and adding alt text to images are manageable without specialist knowledge. Writing content that genuinely covers a topic in depth, structuring it correctly for search intent, and building internal linking that reinforces topical authority across a whole site requires experience to do well, particularly in competitive markets.

Does on-page SEO matter for every page or just the homepage?

Every page you want to rank needs its own on-page SEO work. The homepage is often the most visited page but it targets the broadest entity, usually a brand or person name. Service pages, blog posts, and location pages each need their own optimised title, heading structure, and content depth matched to the specific query they are targeting.