Onpage SEO
On-page SEO is the practice of optimizing a webpage’s content, HTML elements, and structure so search engines and users can understand its topic and relevance.

Key takeaways
- On-page SEO is about optimizing elements you control: content, HTML, and structure.
- Search intent should guide your content creation, not just keywords.
- Title tags and meta descriptions are critical for rankings and click-through rates.
- Internal links and image alt text are easy opportunities to improve page relevance.
- Avoid keyword stuffing and duplicate meta data.
It covers both visible content and behind-the-scenes HTML elements.
Example: Optimizing a blog post about 'how to prune roses'
- Before: URL = `/post123`, title = "Blog post 1", no headings, thin content, no alt text.
- After: URL = `/how-to-prune-roses`, title = "How to Prune Roses: A Step-by-Step Guide", H1 = same as title, H2s = "When to prune", "Tools needed", "Step-by-step", content = 800 words covering each step, images with alt text like "pruning shears cutting rose stem", internal links to related articles on rose care.
Quick-start: 5 steps to optimize any page
- Choose one primary keyword that matches the page’s main topic and search intent.
- Write a unique title tag that includes the keyword and is under 60 characters.
- Craft a compelling meta description (under 160 characters) that summarizes the page and encourages clicks.
- Use a clear URL slug with the keyword, e.g., `/how-to-prune-roses`.
- Add internal links to 2-3 related pages on your site using descriptive anchor text.
How to judge if your on-page SEO is effective
- Title tag: Does it include the target keyword and match the page content?
- Meta description: Does it entice clicks and accurately describe the page?
- Headings: Is there a single H1 and logical H2/H3 structure?
- Content: Does it fully answer the user’s query and provide unique value?
- URL: Is it short, descriptive, and keyword-rich?
- Images: Do they have descriptive file names and alt text?
- Internal links: Are there relevant links to other pages on your site?
Common on-page SEO mistakes
- Keyword stuffing: Repeating the same keyword unnaturally hurts readability and rankings.
- Duplicate or vague title tags: Every page should have a unique, descriptive title.
- Ignoring search intent: Publishing content that doesn’t match what users are looking for.
- Missing internal links: Failing to connect related pages reduces context and navigation.
- Overlooking image alt text: Alt text helps accessibility and gives search engines more context.
Next step
FAQ
What is the difference between on-page and off-page SEO?
On-page SEO refers to optimizations made directly on your website (content, HTML). Off-page SEO involves external signals like backlinks and social mentions.
Does on-page SEO still matter in 2025?
Yes. It helps search engines understand your page and match it to user queries, which is essential for rankings and visibility.
Related topics
Sources
- Google Search Central — Primary source for Google’s guidance on content quality, indexing, structured data, and page-level optimization.
- Moz - On-page SEO — Widely cited SEO reference for defining on-page SEO and its core elements.
- Ahrefs - On-Page SEO — Practical reference with clear guidance on titles, URLs, meta descriptions, and images.
- Google Search Central - SEO Starter Guide — Authoritative overview of how Google recommends making pages discoverable and understandable.
Reviewed by Lucía Marín, Founding editor.