Article
On-page SEO: what to change on a page, shown before and after
On-page SEO is the work you do on a page itself, such as its title, description, headings, text, images and links, so that people and Google can tell what it is about. This guide gives Google’s own rules for each part and works through one service page before and after.
Written byShaneHead of Delivery and Technology
Reviewed byJosh MackayHead of Growth and Client Relationships
- Published
- Updated
- Last reviewed
Key takeaways
- On-page SEO covers the parts of a page you control: title, description, headings, text, images, links and structured data.
- Google says to write descriptive, concise titles and to avoid keyword stuffing and boilerplate.
- There’s no limit on meta description length, but Google truncates snippets to fit, and it mostly builds them from the page itself.
- Use descriptive alt text and descriptive link text: both tell Google and people what an image or a linked page is about.
What on-page SEO covers
SEO work falls into three parts. On-page SEO is everything on the page itself: the title and meta description, the headings and words, the images and their alt text, the links to your other pages, and structured data. It’s the part a business owner can do most of without help, because it happens in the same editor you use to write the page.
Off-page SEO is what other sites say about you, mostly links and mentions; our guide to link building covers it, and our guide to domain authority explains the link scores SEO tools give sites. Technical SEO is whether Google can crawl, index and load your pages properly. On-page work matters most when those two are in reasonable shape, because a clear page that Google can’t find or that loads badly still struggles (our view).
Start with what the searcher wants
Before you touch a title tag, decide what the page is for. One page should answer one kind of search: someone looking for a switchboard upgrade wants to know what it involves and who can do it, not a list of every service you offer. If one page tries to rank for everything, it usually ends up clear about nothing. Our guide to keyword research shows how to find the words people use.
Then write the page for the person, and use their words where they fit naturally. The on-page details below help Google understand a page that is already useful; they don’t rescue one that isn’t (our view).
One service page, before and after
Example Electrical Perth is a made-up business. Its switchboard upgrade page is typical of a first website: a generic title, no description, a welcome heading and an image straight from the phone. The table shows each change and the Google guidance behind it. The "after" wording shows the idea; write your own for your own services.
| Element | Before | After | Google’s guidance |
|---|---|---|---|
| Title | Services | Switchboard Upgrades in Perth | Example Electrical | Write descriptive and concise titles; avoid vague descriptors, keyword stuffing and boilerplate |
| Meta description | (none) | Switchboard upgrades for Perth homes: what’s involved, when you need one, and how to book a licensed electrician. | Google sometimes uses it if it describes the page more accurately than the page text |
| Main heading | Welcome! | Switchboard upgrades in Perth | Break long content into sections, with headings that help people navigate |
| First paragraph | We are a family business with years of experience... | What a switchboard upgrade involves, and the signs your home needs one | Google mostly builds the snippet from the content on the page |
| Image | IMG_2041.jpg, no alt text | switchboard-upgrade.jpg, alt text: New switchboard with safety switches in a Perth home | Use descriptive filenames and alt text, without filling alt text with keywords |
| Internal link | Click here | Read about safety switch testing | Anchor text should be descriptive, reasonably concise and relevant to both pages |
| Structured data | (none) | The business’s details marked up, matching what visitors see on the page | Structured data describes the page to Google; see our schema markup guide |
Titles and meta descriptions
Google’s guide to title links says to write descriptive and concise text for your title elements, to avoid keyword stuffing, and to avoid repeated or boilerplate titles that make two pages impossible to tell apart. Give every page its own title that says what it is about, and add your business name briefly.
A meta description is the short summary you write for a page, which Google may show under the title in its results. Google’s snippet guidance says it primarily uses the content on the page to build the snippet, and sometimes uses the meta description if it gives a more accurate description. On length, there’s no limit, but the snippet is truncated as needed, typically to fit the device width. So write a sentence or two that sums up the page, and make each page’s description unique.
Headings, alt text and images
Google’s SEO starter guide suggests breaking up long content into paragraphs and sections, with headings to help people navigate. Use one main heading that says what the page is about, then headings for each question the page answers.
Alt text is a short description of an image in the page’s code. Google’s image SEO guidance calls it the most important attribute for describing an image, says it helps people who use screen readers, and says Google uses it with the page’s content to understand the image. It recommends descriptive filenames as well, and warns against filling alt text with keywords.
Internal links
Internal links are links from one page on your site to another. Google’s link best practices say Google uses links as a signal of relevance and to find new pages, and that good anchor text, the visible words of the link, is descriptive, reasonably concise and relevant to both pages. "Click here" tells nobody anything; "safety switch testing" tells people and Google what is on the other side.
Structured data
Structured data is code that labels the facts on a page, such as your business name, address, opening hours and services, in a format search engines read. It doesn’t replace clear writing, and it has to match what visitors can see on the page. Our schema markup guide covers which types suit a local business and how to test them. Some website platforms and plug-ins can add the basic business details for you, so check yours before adding code by hand.
On-page work makes a page easier to understand; it doesn’t decide rankings on its own, which also depend on how useful the page is, links and the competition. Our guide on how to rank on Google puts it in context, and a site-wide SEO audit finds the pages that need it most. If you want help with the whole job, that’s part of our SEO work.
Sources
- Influencing your title links in search results, Google Search Central. Checked 2 December 2026.
- Control your snippets in search results, Google Search Central. Checked 2 December 2026.
- Google image SEO best practices, Google Search Central. Checked 4 December 2026.
- Link best practices for Google, Google Search Central. Checked 3 December 2026.
- Search Engine Optimization (SEO) Starter Guide, Google Search Central. Checked 3 December 2026.