<head>
<!-- 基本 Meta -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SEO Meta -->
<title>DevLearn — 免費學習程式設計</title> <!-- ← 最重要的 SEO 元素 -->
<meta name="description"
content="DevLearn 提供免費的 C#、SQL、JavaScript 程式設計教學,適合初學者到進階開發者。">
<meta name="keywords" content="程式設計, C#, SQL, JavaScript, 教學"> <!-- Google 已不用 -->
<meta name="author" content="DevLearn">
<!-- 搜尋引擎指令 -->
<meta name="robots" content="index, follow"> <!-- 允許索引和追蹤連結 -->
<meta name="robots" content="noindex, nofollow"> <!-- 禁止索引 -->
<link rel="canonical" href="https://devlearn.com/chapter/sql-intro"> <!-- 正規 URL -->
</head>
Open Graph(社群分享)
<!-- Facebook / LINE / Discord 分享時顯示的資訊 -->
<meta property="og:type" content="website">
<meta property="og:title" content="SQL 基礎教學">
<meta property="og:description" content="從零開始學 SQL,逐行解析每個指令">
<meta property="og:image" content="https://devlearn.com/images/sql-og.jpg">
<meta property="og:url" content="https://devlearn.com/chapter/sql-intro">
<meta property="og:site_name" content="DevLearn">
<meta property="og:locale" content="zh_TW">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="SQL 基礎教學">
<meta name="twitter:description" content="從零開始學 SQL">
<meta name="twitter:image" content="https://devlearn.com/images/sql-og.jpg">
結構化資料(JSON-LD)
<!-- 幫助 Google 理解你的內容 -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Course",
"name": "SQL 基礎教學",
"description": "從零開始學 SQL",
"provider": {
"@type": "Organization",
"name": "DevLearn"
}
}
</script>
Favicon
<!-- 瀏覽器分頁小圖示 -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
SEO 最佳實踐
| 項目 |
建議 |
<title> |
50~60 字元,包含關鍵字 |
<meta description> |
120~160 字元,吸引人點擊 |
<h1> |
每頁一個,包含主要關鍵字 |
<img alt> |
描述圖片內容 |
| URL |
簡短、有意義、用連字號分隔 |
| HTTPS |
必要(Google 排名因素) |
| 行動友善 |
必要(Google 手機優先索引) |
| 載入速度 |
越快越好(Core Web Vitals) |