Every developer writes HTML, but most overlook critical SEO details that silently hurt search rankings. Here's a practical checklist of the 7 most common SEO mistakes found in production codebases — and exactly how to fix each one.
1. Missing or Empty Title Tags (affects 23% of pages)
Search engines use the <title> tag as the primary signal for what a page is about. An empty title is worse than a bad one.
Fix:
<!-- Bad -->
<title></title>
<!-- Good: 50-60 characters, descriptive -->
<title>How to Debug Node.js Memory Leaks - Step by Step Guide</title>
Impact: Pages with descriptive titles see 15-25% higher click-through rates in search results.
2. Duplicate Meta Descriptions (found in 56% of sites)
Every page should have a unique meta description between 120-160 characters.
<meta name="description" content="Learn 5 techniques to debug Node.js memory leaks using Chrome DevTools and the heap snapshot profiler.">
3. Missing Alt Text on Images (affects 45% of images)
Screen readers and search engines both depend on alt text.
<!-- Bad -->
<img src="chart.png">
<!-- Good -->
<img src="chart.png" alt="Bar chart showing memory usage increased from 120MB to 450MB over 30 minutes">
4. Heading Hierarchy Skipping
Headings should follow a strict order: <h1> → <h2> → <h3>. Never jump from <h1> to <h3>.
| Rule | Correct | Wrong |
|---|---|---|
| One H1 per page |
<h1> main topic |
Multiple <h1> tags |
| Sequential nesting | h1 → h2 → h3 | h1 → h3 (skipped h2) |
| Descriptive text | "Performance Results" | "Section 2" |
5. Non-Semantic HTML Elements
Using <div> for everything loses structural meaning.
<!-- Bad -->
<div class="header">
<div class="nav">...</div>
</div>
<!-- Good -->
<header>
<nav>...</nav>
</header>
Semantic elements help search engines understand content structure and improve accessibility scores.
6. Missing Open Graph Tags for Social Sharing
Without Open Graph tags, shared links look broken on social platforms.
<meta property="og:title" content="How to Debug Node.js Memory Leaks">
<meta property="og:description" content="Step by step guide with heap snapshots">
<meta property="og:image" content="https://example.com/debug-preview.png">
<meta property="og:type" content="article">
7. No Canonical URL on Similar Pages
Duplicate content confuses search engines. Use canonical tags to point to the preferred version.
<link rel="canonical" href="https://example.com/guides/memory-leaks">
Quick Audit Checklist
| Check | Tool | Time |
|---|---|---|
| Title tags | Lighthouse | 30 seconds |
| Meta descriptions | Screaming Frog (free) | 2 minutes |
| Alt text | Lighthouse Accessibility audit | 30 seconds |
| Heading structure | browser DevTools Elements panel | 1 minute |
| Semantic HTML | HTML validator (validator.w3.org) | 30 seconds |
| Open Graph tags | Facebook Sharing Debugger | 1 minute |
| Canonical URLs | site: operator in search engine | 1 minute |
Total audit time: under 10 minutes for most sites.
Run these checks on your next project before deployment. The fixes are small, but the cumulative impact on search visibility is significant — especially for technical content where competition for rankings is fierce.
Top comments (0)