How to Do On Page SEO | A Complete Step-by-Step Guide
If you’ve ever wondered why some pages rank effortlessly while others with similar content struggle to appear anywhere near the first page, the answer often comes down to execution. Knowing the theory behind SEO is one thing, but actually understanding how to do on page SEO properly, step by step, is what separates content that ranks from content that gets ignored.
In this guide, I’ll walk you through exactly how to do on page SEO for any piece of content, from the planning stage through publishing, using practical steps you can apply immediately.
Quick answer: To do on page SEO, optimize your title tag and meta description with your target keyword, use one clear H1 heading, structure content with logical H2 and H3 subheadings, incorporate keywords naturally throughout the body, add internal links, optimize images with alt text, and ensure the content thoroughly answers the searcher’s intent.
How to Do On Page SEO Before You Start Writing

Many people jump straight into writing and treat on-page SEO as an afterthought, adding keywords and headings after the content is already finished. A better approach is to build SEO considerations into your process from the very beginning, since this naturally produces content that’s both well-optimized and genuinely useful.
Research Your Keyword and Search Intent First
Before writing a single word, take time to understand what your target keyword actually means to searchers. Search intent generally falls into a few categories: informational (someone looking for an answer), navigational (someone looking for a specific site), commercial (someone comparing options), or transactional (someone ready to buy).
Search your target keyword yourself and review what’s currently ranking on page one. This tells you what format Google considers the best match, whether that’s a how-to guide, a listicle, a product comparison, or something else entirely. Matching this format is often just as important as the content itself when learning how to do on page SEO effectively.
Once you understand intent, outline your content around the questions and subtopics that naturally support the main keyword. This makes the actual writing process smoother, and it also gives you a natural structure for the headings you’ll need later.
How to Do On Page SEO While Writing Your Content
Once you have your outline and keyword research ready, it’s time to apply on-page SEO principles directly while creating the content itself.
Optimize Your Title Tag and Meta Description
Your title tag is one of the strongest on-page signals you can control. Include your primary keyword naturally, ideally near the beginning, and keep the total length under 60 characters so it doesn’t get cut off in search results. A good title tag should also be compelling enough to earn a click, not just technically correct.
Your meta description doesn’t directly affect rankings, but it strongly influences click-through rates. Write a clear, benefit-focused summary between 140 and 155 characters that tells searchers exactly what they’ll get from clicking through to your page.
Structure Content with Proper Headings
Use exactly one H1 tag for your page title, and make sure it includes your main keyword naturally. From there, break your content into logical sections using H2 subheadings, with H3 tags for any supporting points within those sections.
This structure does two things at once: it helps search engines understand the hierarchy and relevance of your content, and it makes the page far easier for readers to scan. Most people don’t read every word of an article; they scan headings first to find the section relevant to them, so clear, descriptive headings genuinely improve user experience alongside SEO performance.
Use Keywords Naturally Throughout the Body
Include your primary keyword within the first 100 words of your content, since this signals early relevance to both readers and search engines. From there, use your keyword and related LSI terms naturally throughout the body content, without forcing awkward repetition.
Modern search engines are sophisticated enough to understand context and synonyms, so focus on writing naturally rather than hitting a specific keyword density target. If a sentence feels forced or unnatural because you’re trying to fit in a keyword, rewrite it. Readability should always take priority over rigid keyword placement.
Add Internal Links to Related Content
Internal linking helps search engines understand how your pages relate to each other, while also keeping readers on your site longer. Aim to include at least two to three relevant internal links within your content, using descriptive anchor text rather than generic phrases like “click here.”
For example, if you’re writing about on-page SEO execution, it makes sense to link back to a foundational guide on What is On Page SEO | A Complete Beginner’s Guide, since readers unfamiliar with the basics can get up to speed before diving into implementation details.
Optimize Images for Speed and Accessibility
Compress your images before uploading them to keep page load times fast, since slow-loading pages hurt both rankings and user experience. Use descriptive, keyword-relevant file names instead of generic names like “IMG1234.jpg,” and add alt text to every image describing what it shows.
Alt text serves two purposes: it improves accessibility for users relying on screen readers, and it gives search engines additional context about your content, which can occasionally help images appear in image search results as well.
How to Do On Page SEO After Publishing
Learning how to do on page SEO doesn’t end once you hit publish. A few important steps happen after your content goes live, and skipping them can leave your optimization efforts incomplete.
Check Technical Basics Before Considering the Job Done
Confirm that your URL is short, descriptive, and free of unnecessary parameters. Check that the page displays properly on mobile devices, since a significant portion of search traffic comes from mobile users. Verify your page loads quickly using a tool like Google PageSpeed Insights, and make sure the page isn’t accidentally set to “noindex,” which would prevent it from appearing in search results altogether.
If you’re unsure whether your website’s broader technical setup is supporting your on-page efforts, our guide on What is Technical SEO | A Complete Beginner’s Guide explains the backend factors that work alongside individual page optimization.
Monitor Performance and Refine Over Time
Once your content is live, use tools like Google Search Console to track which keywords are driving impressions and clicks to your page. This data reveals whether your on-page optimization is actually working, or whether adjustments are needed.
If a page isn’t performing as expected after a few months, revisit your title tag, headings, and content depth. Sometimes small changes, like rewriting a meta description or adding a missing subtopic, can meaningfully improve rankings without requiring an entirely new piece of content.
Common Mistakes to Avoid When Learning How to Do On Page SEO
One frequent mistake is over-optimizing by stuffing keywords unnaturally, which search engines are increasingly good at detecting and penalizing. Another is neglecting content depth in favor of purely technical checklist items, resulting in pages that check every SEO box but don’t actually satisfy what the searcher was looking for.
It’s also common for beginners to forget about internal linking entirely, treating each page as an isolated piece of content rather than part of a connected website. Building internal links consistently, even after initial publishing, strengthens your site’s overall structure over time.
For a visual, hands-on demonstration of applying these steps to a real page, check out our YouTube channel, where we walk through complete on-page optimization examples from start to finish.
If you found this guide helpful and want more practical SEO tutorials and strategies, follow our page on Facebook where we share regular tips and case studies.
Final Thoughts
Learning how to do on page SEO effectively comes down to combining technical best practices with genuinely useful, well-structured content. From researching search intent before writing to optimizing titles, headings, and internal links, each step plays a role in helping both search engines and readers understand and value your content.
Rather than treating on-page SEO as a checklist to rush through, build these practices into your natural content creation process. Over time, this approach produces pages that not only rank better, but also genuinely serve the people who find them, which is ultimately what search engines are trying to reward in the first place.
1. How do I do on page SEO?
To do on page SEO, optimize your title tag and meta description with your keyword, use one H1, structure content with H2 and H3 headings, use keywords naturally, add internal links, and optimize images.
2. What should I do before writing content for on page SEO?
Before writing, research your target keyword and search intent, check what’s currently ranking on page one, and outline your content around subtopics that support your main keyword.
3. How do I optimize a title tag for on-page SEO?
Include your primary keyword naturally near the beginning of the title tag, and keep the total length under 60 characters so it doesn’t get cut off in search results.
4. Does the meta description affect rankings?
Meta descriptions don’t directly affect rankings, but a clear, compelling summary between 140 and 155 characters can significantly improve click-through rates from search results.
5. How many H1 tags should a page have?
A page should have exactly one H1 tag, and it should include your main keyword naturally while clearly representing the primary topic of the content.
9. How many internal links should I add to a page?
Aim to include at least two to three relevant internal links within your content, using descriptive anchor text instead of generic phrases like “click here.