How to Do on Page SEO in HTML Website Examples
Static HTML sites have a real advantage in search: they are fast, predictable and easy for crawlers to parse, with no rendering layer to go wrong. What they lack is the guardrails a modern CMS provides, which means every on-page signal is your responsibility to get right by hand. That is not a disadvantage so much as a discipline. If you understand what each element does, a hand-coded site can outperform a bloated platform build on identical content. This guide walks through the on-page elements that matter, with practical markup patterns you can copy, and explains the reasoning behind each so you can adapt them rather than paste them blindly.
How AAMAX.CO Can Help With On-Page SEO Implementation
At AAMAX.CO we sit on both sides of this problem: we write the markup and we optimise the search performance. As a full service digital marketing company offering Web Development, Digital Marketing and SEO services worldwide, we regularly take static and hand-coded sites, audit every template, and rebuild the head section, heading hierarchy, internal linking and structured data so the site earns the rankings its content deserves. We also set up the boring but essential infrastructure that hand-built sites usually lack, such as generated sitemaps, canonical logic, redirect maps and automated checks that catch a missing title tag before it ships. If you would rather have specialists handle the technical detail while you focus on the content, our search engine optimization team can implement all of it directly in your codebase.
Get the Document Head Right
The head section carries most of your explicit on-page signals. Every page needs a unique, descriptive title element of roughly fifty to sixty characters that leads with the primary topic, a meta description of around one hundred and forty to one hundred and sixty characters written to earn a click rather than to stuff keywords, a canonical link pointing at the preferred absolute URL, and a viewport meta tag for mobile rendering. A solid baseline looks like this, written here in plain text so it displays safely: an html lang attribute set to your content language, then in the head a charset declaration, a viewport tag set to width equals device-width with initial-scale one, the title, the meta description, a link element with rel canonical and an absolute href, and Open Graph plus Twitter card tags for social previews. Avoid the meta keywords tag entirely, as it has been ignored for well over a decade. Never leave a description empty and never reuse the same title across multiple pages, which is the single most common error on hand-built sites.
Use Semantic HTML and a Clean Heading Hierarchy
Semantic elements help search engines understand which part of your page is the actual content. Wrap the primary content in a main element, use header and nav for site chrome, article for self-contained content, section for thematic groupings, aside for supplementary material and footer for the site footer. Inside the content, use exactly one h1 that states what the page is about, then h2 for major sections and h3 for subsections, never skipping levels for visual reasons. If you want a smaller heading, style it with CSS rather than dropping to a lower tag. This matters both for crawlers building a content outline and for screen reader users navigating by heading, and the two goals happen to align almost perfectly.
Optimise Images and Media
Images are usually the largest performance cost on a static site and a frequently wasted relevance signal. Always include a descriptive alt attribute that conveys the image's meaning in context, and use an empty alt attribute for purely decorative images so assistive technology skips them. Set explicit width and height attributes to reserve layout space and prevent layout shift. Serve modern formats such as WebP or AVIF with a fallback using the picture element, and provide multiple sizes through srcset and sizes so mobile devices do not download desktop assets. Add loading lazy to images below the fold, but never to your main hero image, since lazy-loading the largest contentful element actively harms your performance score. Use descriptive, hyphenated file names rather than camera output like IMG_4821.
Structure Links and URLs Deliberately
Internal linking is the strongest on-page lever most static sites underuse. Link between related pages using descriptive anchor text that reflects the destination topic, not generic phrases like click here or read more. Keep important pages within three clicks of the homepage and make sure every page is reachable through a crawlable anchor tag with an href attribute, not a JavaScript click handler. Use lowercase, hyphenated, readable URL paths that describe the content and avoid unnecessary parameters, dates or ID numbers. Add rel noopener to any link opening in a new tab, and use rel nofollow or rel sponsored for paid or untrusted outbound links. Include a breadcrumb navigation on deep pages, marked up with structured data, so both users and search engines understand hierarchy.
Add Structured Data
Structured data does not directly raise rankings, but it makes your pages eligible for rich results and helps machines interpret your entities, which is increasingly important as AI systems summarise content. Implement it as a JSON-LD script block in the head or at the end of the body. At minimum, add an Organization or LocalBusiness block on your homepage with your name, logo, URL and contact details, a BreadcrumbList on interior pages, and a type appropriate to each template such as Article for posts, Product with offers for ecommerce, FAQPage for genuine question and answer sections, and Service for service pages. Only mark up content that is actually visible on the page, and validate every block with a schema testing tool before shipping.
Common Mistakes on Hand-Coded Sites
A handful of errors account for most static site underperformance. Duplicate or missing title tags and descriptions top the list, usually because a template was copied and the head never updated. Missing or incorrect canonical tags cause the same content to be indexed under multiple URLs, splitting signals between www and non-www or http and https variants. Absent sitemaps and robots files leave discovery to chance. Blocking CSS or JavaScript in robots directives prevents proper rendering. Orphan pages with no internal links never get crawled. Text embedded in images is invisible to search engines. And unminified, uncompressed assets slow the site enough to affect both rankings and conversion. Build a pre-launch checklist covering each of these and run it on every new page.
Verify and Iterate
Once implemented, validate rather than assume. Use a crawler to check every page for a unique title, a single h1, a valid canonical and no broken links. Test rendering and mobile usability, measure core web vitals on real devices, and submit your sitemap through search engine webmaster tools so you can monitor indexation and query performance. Then revisit quarterly: refresh outdated content, improve titles on pages with high impressions and low click-through, and strengthen internal links to pages you want to promote. On-page SEO is not a one-time task but a maintenance habit, and static sites reward that habit generously. If you want this built into your development workflow alongside wider campaign work, our digital marketing team can take it on.
Want to publish a guest post on aamax.co?
Place an order for a guest post or link insertion today.
Place an Order