Quick reference untuk SEO best practices. On-page optimization, technical SEO, meta tags, dan checklist lengkap untuk ranking tinggi di Google.
| Aspect | Description |
|---|---|
| On-Page SEO | Optimization pada website sendiri (content, meta tags, structure) |
| Off-Page SEO | Optimization di luar website (backlinks, social signals) |
| Technical SEO | Backend optimization (speed, mobile, indexing) |
| Local SEO | Optimization untuk local search (Google Business Profile) |
<!-- Good title -->
<title>Keyword Phrase - Brand Name | Category</title>
<title>Belajar JavaScript untuk Pemula - Tutorial Lengkap 2025 | BelajarKoding</title>Best Practices:
<meta name="description" content="Panduan lengkap belajar JavaScript dari nol. Tutorial step-by-step, code examples, dan best practices untuk pemula.">Best Practices:
<h1>Main Topic (Primary Keyword)</h1>
<h2>Major Section (Secondary Keyword)</h2>
<h3>Subsection</h3>
<h3>Subsection</h3>
<h2>Major Section</h2>
<h3>Subsection</h3>Rules:
Good URLs:
https://example.com/blog/seo-basics-beginners
https://example.com/products/wireless-headphones
Bad URLs:
https://example.com/p?id=123&cat=5
https://example.com/2024/11/20/post-title-here-123Best Practices:
<img
src="javascript-tutorial.webp"
alt="JavaScript code example showing arrow function syntax"
width="800"
height="600"
loading="lazy"
/>Checklist:
<!-- Facebook/LinkedIn -->
<meta property="og:title" content="SEO Guide for Beginners">
<meta property="og:description" content="Complete SEO tutorial...">
<meta property="og:image" content="https://example.com/og-image.jpg">
<meta property="og:url" content="https://example.com/seo-guide">
<meta property="og:type" content="article">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="SEO Guide for Beginners">
<meta name="twitter:description" content="Complete SEO tutorial...">
<meta name="twitter:image" content="https://example.com/twitter-image.jpg"><!-- Prevent duplicate content -->
<link rel="canonical" href="https://example.com/original-page">Use when:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "SEO Guide for Beginners",
"author": {
"@type": "Person",
"name": "Galih Pratama"
},
"datePublished": "2025-11-20",
"dateModified": "2025-11-20",
"image": "https://example.com/image.jpg",
"publisher": {
"@type": "Organization",
"name": "BelajarKoding",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
}
}
</script>Common Schema Types:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2025-11-20</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/blog/seo-guide</loc>
<lastmod>2025-11-20</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Submit to: Google Search Console
User-agent: *
Allow: /
Disallow: /admin/
Disallow: /api/
Disallow: /private/
Sitemap: https://example.com/sitemap.xml<!-- Good anchor text -->
<a href="/artikel/typescript-fundamentals">Learn TypeScript basics</a>
<!-- Bad anchor text -->
<a href="/artikel/typescript-fundamentals">Click here</a>Best Practices:
| Metric | Good | Poor | Measures |
|---|---|---|---|
| LCP (Largest Contentful Paint) | ≤ 2.5s | > 4s | Loading performance |
| INP (Interaction to Next Paint) | ≤ 200ms | > 500ms | Interactivity |
| CLS (Cumulative Layout Shift) | ≤ 0.1 | > 0.25 | Visual stability |
Catatan: INP replaced FID as a Core Web Vital in March 2024.
Improve LCP:
Improve INP:
Improve CLS:
<!-- Required viewport meta -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">Checklist:
https://example.com
http://example.comWhy:
Tools:
Types:
Target long-tail for easier wins!
E-E-A-T Principles:
Content Checklist:
Quality Factors:
How to Get Backlinks:
Avoid:
Google Business Profile:
Local Keywords:
"coffee shop jakarta"
"web developer surabaya"
"dentist near me"Local Citations:
// app/page.tsx
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'JavaScript Tutorial - BelajarKoding',
description: 'Learn JavaScript from scratch...',
keywords: ['javascript', 'tutorial', 'programming'],
authors: [{ name: 'Galih Pratama' }],
openGraph: {
title: 'JavaScript Tutorial',
description: 'Learn JavaScript...',
images: ['/og-image.jpg'],
type: 'article',
},
twitter: {
card: 'summary_large_image',
title: 'JavaScript Tutorial',
description: 'Learn JavaScript...',
images: ['/twitter-image.jpg'],
},
}
// app/sitemap.ts
export default function sitemap() {
return [
{
url: 'https://example.com',
lastModified: new Date(),
changeFrequency: 'daily',
priority: 1,
},
]
}
// app/robots.ts
export default function robots() {
return {
rules: {
userAgent: '*',
allow: '/',
disallow: '/admin/',
},
sitemap: 'https://example.com/sitemap.xml',
}
}| Mistake | Fix |
|---|---|
| Keyword stuffing | Natural keyword usage |
| Duplicate content | Unique content + canonical tags |
| Missing alt text | Descriptive alt on all images |
| Slow site speed | Optimize images, minify code, CDN |
| Not mobile-friendly | Responsive design |
| Broken links | Regular audits & fixes |
| Thin content (< 300 words) | Comprehensive content (1500+) |
| No internal links | Link to relevant pages |
| Buying links | Earn links naturally |
| Ignoring analytics | Track & optimize regularly |
SEO is a marathon, not a sprint!
Content is King, but Distribution is Queen. And she wears the pants.
Focus on:
Happy ranking! 📈
Login atau daftar akun gratis untuk membaca cheat sheet ini.