π What is SEO?
SEO (Search Engine Optimization) is the practice of optimizing your website to rank higher in search engine results pages (SERPs), driving organic (unpaid) traffic to your site.
π° Free Traffic
Unlike paid ads, organic traffic doesn't cost per click. Once you rank, traffic keeps coming.
π Trust & Credibility
Users trust organic results more than ads. Top rankings signal authority.
π Long-term ROI
Good SEO compounds over time. Content can rank for years.
π€ Better UX
SEO improvements often improve user experience too.
βοΈ How Search Engines Work
Search engines operate in three main phases:
1. Crawling
- Bots (Googlebot) discover pages by following links
- They read HTML, CSS, JavaScript
robots.txtcontrols access- Sitemap helps discovery
2. Indexing
- Content analyzed and stored
- Google understands text, images, videos
- Not all pages get indexed
- Duplicates and low-quality filtered
3. Ranking
- Algorithms determine result order
- 200+ ranking factors
- Goal: most relevant results
- Personalized by location, history
π§ Technical SEO
Technical SEO ensures search engines can crawl, index, and render your site effectively.
Essential Meta Tags
<!-- Character encoding -->
<meta charset="UTF-8">
<!-- Viewport for mobile -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Robots directive -->
<meta name="robots" content="index, follow">
<!-- Canonical URL -->
<link rel="canonical" href="https://example.com/page">
<!-- Language -->
<html lang="en">
Technical Checklist
- HTTPS enabled (ranking signal)
- Mobile responsive design
- Fast loading (< 3 seconds)
- Clean URL structure
- XML sitemap submitted
- robots.txt configured
- No broken links (404s)
- Proper redirects (301s)
- Structured data implemented
robots.txt Example
# Located at: example.com/robots.txt
# Rules for all bots
User-agent: *
Disallow: /admin/
Disallow: /private/
Disallow: /api/
Allow: /
# Point to sitemap
Sitemap: https://example.com/sitemap.xml
π On-Page SEO
On-page SEO involves optimizing individual pages for target keywords.
Critical HTML Elements
<head>
<!-- Title Tag: Most important (50-60 chars) -->
<title>Primary Keyword - Secondary | Brand</title>
<!-- Meta Description: Affects CTR (150-160 chars) -->
<meta name="description"
content="Compelling description with keywords">
<!-- Canonical URL -->
<link rel="canonical" href="https://example.com/page">
<!-- Open Graph for social sharing -->
<meta property="og:title" content="Page Title">
<meta property="og:description" content="Description">
<meta property="og:image" content="https://example.com/img.jpg">
</head>
<body>
<!-- One H1 per page with primary keyword -->
<h1>Primary Keyword in Main Heading</h1>
<!-- Logical heading hierarchy -->
<h2>Supporting Topic</h2>
<h3>Subtopic</h3>
<!-- Optimized images -->
<img src="descriptive-name.webp"
alt="Detailed description"
width="800" height="600"
loading="lazy">
<!-- Internal links with descriptive anchor text -->
<a href="/related-page">Learn more about topic</a>
</body>
On-Page Best Practices
| Element | Best Practice | Length |
|---|---|---|
| Title Tag | Include primary keyword, be compelling | 50-60 chars |
| Meta Description | Summarize content, include CTA | 150-160 chars |
| H1 | One per page, include primary keyword | - |
| URL | Short, descriptive, hyphenated | 60-75 chars |
| Images | WebP format, lazy load, alt text | - |
π Backlinks
A backlink is when another website links TO your website. It's a "vote of confidence."
βββββββββββββββββββ BACKLINK βββββββββββββββββββ
β β ββββββββββββββββββββββββΆ β β
β Website A β <a href="yoursite.com"> β YOUR SITE β
β (External) β "Great resource" β β
β β </a> β β
βββββββββββββββββββ βββββββββββββββββββ
β β
Linking Site Linked Site
(gives the link) (receives the link)
Backlink Quality Factors
| Factor | High Value | Low Value |
|---|---|---|
| Authority | NYTimes, .gov, .edu | Random unknown blogs |
| Relevance | Same industry/topic | Unrelated sites |
| Anchor Text | Descriptive, natural | "Click here" |
| Placement | In main content | Sidebar, footer |
| Link Type | DoFollow | NoFollow |
DoFollow vs NoFollow
<!-- DoFollow (default) - Passes SEO value -->
<a href="https://example.com">Great Resource</a>
<!-- NoFollow - Does NOT pass SEO value -->
<a href="https://example.com" rel="nofollow">Link</a>
<!-- Sponsored - Paid/advertisement -->
<a href="https://example.com" rel="sponsored">Ad</a>
<!-- UGC - User Generated Content -->
<a href="https://example.com" rel="ugc">User Link</a>
Ethical Link Building
π Create Link-Worthy Content
- Original research & data
- Comprehensive guides
- Infographics
- Free tools/calculators
π§ Outreach
- Broken link building
- Guest posting
- HARO (Help A Reporter)
- Resource page outreach
π€ Build Relationships
- Industry communities
- Collaborations
- Podcast interviews
- Conference speaking
π Canonical Links
A canonical link tells search engines which URL is the "master" version of a page.
The Duplicate Content Problem
example.com/pageexample.com/page?ref=twitterexample.com/page?utm_source=emailwww.example.com/pageexample.com/page/(trailing slash)
Result: Link juice split, crawl budget wasted, wrong URL might rank!
The Solution
<!-- On ALL variations, point to the canonical URL -->
<link rel="canonical" href="https://example.com/page">
When to Use Canonical
| Scenario | URL | Canonical |
|---|---|---|
| Tracking Parameters | /page?utm_source=twitter |
/page |
| Sorting/Filtering | /products?sort=price |
/products |
| WWW vs Non-WWW | www.example.com/page |
example.com/page |
| HTTP vs HTTPS | http://example.com/page |
https://example.com/page |
| Syndicated Content | Article on Medium | Original on your site |
Canonical vs 301 Redirect
| Canonical Tag | 301 Redirect |
|---|---|
| Both URLs accessible | User redirected |
| Hint to search engines | Directive |
| For parameter variations | For moved pages |
| URL stays in address bar | URL changes |
π Structured Data (Schema)
Structured data helps search engines understand your content and enables rich snippets in search results.
Article Schema
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Complete Guide to SEO",
"author": {
"@type": "Person",
"name": "John Doe"
},
"datePublished": "2024-01-15",
"dateModified": "2024-01-20"
}
Product Schema (E-commerce)
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Blue Running Shoes",
"offers": {
"@type": "Offer",
"price": "99.99",
"priceCurrency": "USD"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"reviewCount": "127"
}
}
FAQ Schema
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is SEO?",
"acceptedAnswer": {
"@type": "Answer",
"text": "SEO stands for Search Engine Optimization..."
}
}
]
}
Common Schema Types
β‘ Core Web Vitals & SEO
Core Web Vitals are Google's page experience metrics and ranking signals.
| Metric | Measures | Target |
|---|---|---|
| LCP (Largest Contentful Paint) | Loading performance | < 2.5s |
| INP (Interaction to Next Paint) | Interactivity | < 200ms |
| CLS (Cumulative Layout Shift) | Visual stability | < 0.1 |
πΌοΈ Optimize LCP
- Optimize images (WebP, lazy load)
- Preload critical resources
- Use CDN
- Server-side rendering
β‘ Optimize INP
- Minimize JavaScript
- Break up long tasks
- Use web workers
- Optimize event handlers
π Optimize CLS
- Set dimensions on images
- Reserve space for ads
- Don't insert content above fold
- Use transform for animations
π URL Structure
Good URLs
example.com/products/blue-running-shoesexample.com/blog/2024/seo-guideexample.com/category/subcategory/page
Bad URLs
example.com/p?id=12345&cat=67example.com/page.php?session=abcexample.com/very-long-url-title...
URL Rules
- Use hyphens, not underscores
- Lowercase only
- Keep under 60-75 characters
- Include target keyword
- Be descriptive but concise
π οΈ SEO Tools
Free (Essential)
| Tool | Purpose |
|---|---|
| Google Search Console | Crawl stats, indexing, queries, issues |
| Google Analytics | Traffic, behavior, conversions |
| PageSpeed Insights | Core Web Vitals performance |
| Mobile-Friendly Test | Mobile compatibility check |
| Rich Results Test | Structured data validation |
Paid (Advanced)
| Tool | Purpose |
|---|---|
| Ahrefs | Backlinks, keywords, competitor analysis |
| SEMrush | All-in-one SEO platform |
| Moz Pro | Domain authority, link analysis |
| Screaming Frog | Site crawler, technical audits |
π« Common Mistakes
Technical Mistakes
- β Blocking CSS/JS in robots.txt
- β Missing or duplicate title tags
- β Slow page speed
- β Not using HTTPS
- β Broken internal links
- β Missing canonical tags
- β Not mobile-friendly
Content Mistakes
- β Thin/duplicate content
- β Keyword stuffing
- β Hidden text
- β Missing alt text on images
- β No internal linking strategy
- β Ignoring search intent
Link Building Mistakes
- β Buying links
- β Link farms/PBNs
- β Excessive link exchanges
- β Irrelevant guest posting
β SEO Checklist
π Pre-Launch
- Keyword research completed
- Site architecture planned
- URL structure defined
- robots.txt configured
- XML sitemap created
π§ Technical
- HTTPS enabled
- Mobile responsive
- Core Web Vitals optimized
- Canonical tags implemented
- Structured data added
- 404 page created
π On-Page (Every Page)
- Unique title tag (50-60 chars)
- Compelling meta description
- One H1 with primary keyword
- Logical heading hierarchy
- Optimized images with alt text
- Internal links
π Post-Launch
- Submit sitemap to Search Console
- Set up Google Analytics
- Monitor indexing status
- Track keyword rankings
- Build quality backlinks
- Create new content regularly
π Summary
SEO is a long-term strategy that combines:
π§ Technical Excellence
Fast, crawlable, mobile-friendly site
π Quality Content
Relevant, comprehensive, E-E-A-T focused
π Authority Building
Quality backlinks and brand signals
π€ User Experience
Core Web Vitals, accessibility, usability