SEO optimization is one of those things that sounds complicated until you actually sit down and work through it. Once you understand what search engines are looking for and why, the process becomes a lot more straightforward. This guide walks you through every major on-page element you need to get right, from your page title down to your image alt text, so you can optimize your web pages with confidence.
If you have been publishing content and not seeing results, the problem is almost always on-page. Good content that is poorly structured simply does not rank. So let us fix that.
What Is On-Page SEO Optimization and Why Does It Matter
On-page SEO optimization refers to everything you do directly on a web page to help search engines understand what the page is about and serve it to the right people. It is different from off-page SEO, which covers things like backlinks and social signals that happen outside your site.
The reason on-page SEO matters so much is because it is entirely in your control. You cannot force another website to link to you, but you can absolutely control your page titles, your content structure, your headings, and your internal links. Because of this, on-page optimization is usually the first place to focus when you want to improve your rankings.
Search engines like Google use crawlers to read your pages and understand their content. When your page is properly optimized, you make that job easier for the crawler, which means Google is more likely to rank your page for the searches it is actually relevant for.
Start With Your Focus Keyphrase
Before you touch a single element on your page, you need to know what keyphrase you are optimizing for. This is the phrase your target reader types into Google when they are looking for what your page offers.
Your focus keyphrase should be specific enough to have a clear intent behind it. “SEO” is too broad. “SEO optimization for small business websites” is much better because it tells you exactly who is searching and what they want to find.
Once you have your keyphrase, every optimization decision you make on that page should connect back to it. The goal is not to stuff the phrase into every sentence. The goal is to make it clear to both the reader and the search engine that this page is the most useful resource available for that specific search.
Your Page Title and SEO Title
The page title is one of the most important on-page SEO optimization signals you have. It appears as the blue clickable link in Google search results, so it does the double job of telling Google what your page covers and convincing the user to click.
Keep your SEO title under 60 characters. Anything longer gets cut off in search results, which looks unprofessional and reduces your click-through rate. Put your focus keyphrase as close to the beginning of the title as possible. Google gives more weight to words that appear earlier in the title.
A good title is clear and specific. It tells the reader exactly what they will get from the page. Avoid vague titles that could apply to a thousand different pages. Be direct about what the article covers and who it is for.
Your H1 heading (the main heading visible on the page itself) should be closely related to your SEO title but does not have to be identical. The SEO title is written for search results. The H1 is written for the reader who has already landed on your page.
The Meta Description
The meta description is the short paragraph that appears under your page title in search results. Google does not use it as a direct ranking factor, but it has a big impact on whether someone clicks your link or scrolls past it.
Write your meta description as a genuine pitch for the page. It should contain your focus keyphrase once, stay between 120 and 156 characters, and give the reader a clear reason to click through. Think of it as a single sentence that answers the question: why should I read this page instead of the other results?
Do not copy the first sentence of your article. Write the meta description specifically for the search results page, where you are competing with every other result for the reader’s attention.
URL Structure and Slugs
Your URL slug is the part of the web address that identifies the specific page. For example, in forgexd.co.za/blog/on-page-seo-optimization, the slug is on-page-seo-optimization.
A good slug is short, lowercase, and built around the core words of your focus keyphrase. Remove filler words like “the,” “a,” “how,” and “to.” The goal is a clean, readable URL that gives both the user and the search engine an immediate sense of what the page covers.
Avoid long slugs that mirror your full title. A slug like how-to-perform-on-page-seo-optimization-strategy-and-best-practices is too long. Cut it to the essential words: on-page-seo-optimization works perfectly.
Once your page is published and indexed, avoid changing the slug. Every time you change a URL, you risk losing the rankings and backlinks that page has already earned. Get the slug right before you publish.
Heading Structure: H1, H2, and H3
Your heading structure is how you communicate the organization of your page to both readers and search engines. A well-structured page is easier to read and easier to crawl.
Use only one H1 per page. That is your main page title and there should never be more than one. Under your H1, use H2 headings for your main sections and H3 headings for subsections within those sections. Do not skip heading levels. Jumping from H2 to H4 confuses both readers and crawlers.
Between 30% and 75% of your H2 and H3 headings should contain your focus keyphrase or a close synonym. Below 30% means your headings are not reinforcing the topic clearly enough. Above 75% starts to look forced and unnatural.
Make your headings descriptive and specific. A reader skimming the page should be able to understand the full structure of your article just by reading the headings alone. Vague headings like “More Details” or “Other Considerations” do not help anyone.
Content Length and Quality
SEO optimization is not just about technical elements. The actual content on your page is the most important factor of all, and thin content is one of the most common reasons pages fail to rank.
For a standard blog post or guide like this one, aim for at least 800 to 1,500 words. For cornerstone content like pillar pages that cover a topic in full, aim for 1,500 to 2,500 words. The length should be determined by how much space the topic genuinely requires, not by hitting an arbitrary word count target.
Every paragraph on the page should earn its place. If a paragraph does not add new information or move the reader forward, cut it. Padding your content with repetitive sentences to inflate the word count actually hurts your rankings because it signals to Google that the page is not a well-focused resource.
Write at a level that respects your reader’s intelligence. Explain concepts clearly the first time you introduce them, but do not oversimplify or talk down to the reader. The goal is to leave every visitor feeling like they genuinely learned something from your page.
Keyphrase Density and Natural Variation
Your focus keyphrase should appear throughout the body of your page at a density between 0.5% and 3.0%. For a 1,000 word article, that works out to roughly 5 to 30 mentions of the keyphrase or its close variants spread across the whole piece.
Do not cluster all your keyphrase uses in the introduction and then forget about it for the rest of the article. Spread them out so that every major section of the page connects back to the core topic.
When you are running high on keyphrase density, swap some uses out for synonyms rather than just deleting them. If your focus keyphrase is “SEO optimization,” natural synonyms include “search engine optimization,” “on-page optimization,” “page optimization,” and “website SEO.” Using these variations keeps the writing feeling natural while signaling to Google that the page covers the topic from multiple angles.
Internal Linking
Every page you publish should include between 2 and 5 internal links pointing to other relevant pages on your site. Internal links do two things. They help users navigate to related content, which keeps them on your site longer. They also pass authority from one page to another, which helps your most important pages rank better.
Prioritize linking to your cornerstone and pillar pages because those are the ones that need the most authority flowing to them. Use descriptive anchor text that tells the reader exactly where the link goes and why it is worth visiting. Never use “click here” or “read more” as anchor text because those phrases give Google no information about the destination page.
Think about what the reader of this page would logically want to read next, and link there. Good internal linking creates a logical journey through your site rather than a dead end.
Images and Alt Text
Every page should include at least 2 to 4 relevant images. Images make content more engaging and give you additional opportunities to signal the topic of your page through alt text.
Alt text is the description attached to an image that search engines read to understand what the image shows. Write alt text that accurately describes what is in the image. For at least one image per page, include your focus keyphrase or a synonym in the alt text. Do not put the keyphrase in every image’s alt text because that gets flagged as over-optimization.
Optimize your image file sizes before uploading. Large images slow your page down, and page speed is a confirmed ranking factor. A page that takes 5 seconds to load loses a significant portion of its visitors before they even read a word.
Readability and Writing Quality
Search engines have gotten very good at understanding whether content is written for real people or written to game rankings. A page that is hard to read, full of jargon, or structured like a keyword list rather than an article will not perform well regardless of how well the technical elements are optimized.
Keep your sentences concise. No more than 25% of your sentences should exceed 20 words. Long sentences are harder to read and they make your content feel heavy. When a sentence runs on, break it into two.
Use active voice as your default. Passive voice makes writing feel slow and indirect. Write sentences where the subject does the action. “Google rewards well-structured content” is better than “well-structured content is rewarded by Google.”
Use transition words to guide the reader from one idea to the next. Words like “because,” “therefore,” “however,” “as a result,” and “for example” create a logical flow that makes your article feel like a coherent argument rather than a collection of disconnected points. Aim for transition words in at least 30% of your sentences.
Technical On-Page Elements
Beyond the content itself, a few technical elements directly affect how well your page performs in search results.
Page speed is a ranking factor. Use tools like Google PageSpeed Insights to identify what is slowing your pages down and fix those issues. Common culprits are uncompressed images, too many JavaScript files loading before the page content, and hosting that is too slow for your traffic.
Mobile optimization is non-negotiable. Google uses mobile-first indexing, which means it ranks your pages based on how they perform on mobile devices. If your site does not work well on a phone, your rankings will suffer regardless of how good your content is.
Structured data (also called schema markup) is optional but valuable. It gives Google additional context about your content, which can result in rich snippets appearing in search results, such as star ratings, FAQs, or article publish dates. Rich snippets generally improve click-through rates significantly.
The Right Order to Optimize Any Page
Getting the order right makes the whole process faster and produces better results.
Start by choosing a clear and specific focus keyphrase. Then write the content, focusing entirely on making it genuinely useful for the reader. Once the content is written, go back and place the keyphrase where it needs to appear: the introduction, the SEO title, the meta description, the slug, and the subheadings. Add images with descriptive alt text and add your internal links. Finally, run your SEO tool (Yoast, Rank Math, or similar) and work through any flagged issues.
Do not try to optimize while you write. It breaks your flow and produces forced, unnatural writing. Write first, optimize second.
Final Checklist Before Publishing
Run through this before you publish any page:
- Focus keyphrase appears in the introduction, ideally in the first two sentences
- SEO title contains the keyphrase near the beginning and is under 60 characters
- Meta description contains the keyphrase once and is between 120 and 156 characters
- URL slug is short, lowercase, and built around the keyphrase
- Between 30% and 75% of H2 and H3 headings contain the keyphrase or a synonym
- At least one image has alt text that includes the keyphrase or a synonym
- Keyphrase density is between 0.5% and 3.0% across the full body
- No paragraph exceeds 150 words
- No more than 25% of sentences exceed 20 words
- Passive voice is below 10% of sentences
- Transition words appear in at least 30% of sentences
- Page includes 2 to 5 internal links with descriptive anchor text
- At least 2 relevant images are included with optimised alt text
SEO optimization is not a one-time task. Every page you publish is an opportunity to build your site’s authority and relevance for the topics that matter to your audience. Get the fundamentals right on every page and the results compound over time.
If you want a deeper look at how to build a content strategy around keyword research, check out our guide to building an SEO content plan from scratch.
