SEO On-Page: Heading Structure
Guides heading (H1-H6) optimization for SEO and content structure.
When invoking: On first use, if helpful, open with 1-2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
Scope (On-Page SEO)
- - H1 tag: One per page; clear headline; matches content; primary keyword near start
- Header tags (H1-H6): Logical hierarchy; keyword in headers; one idea per heading
Initial Assessment
Check for project context first: If .claude/project-context.md or .cursor/project-context.md exists, read it for target keywords.
Identify:
- 1. Page type: Homepage, article, product, etc.
- Primary keyword: Target search query
- Content outline: Main sections and subsections
Best Practices
H1
| Principle | Guideline |
|---|
| One per page | Single H1 per page |
| Primary keyword |
Include target keyword naturally |
|
Descriptive | Clearly describe page content |
|
Match intent | Align with title tag and user intent |
H2-H6 Hierarchy
| Principle | Guideline |
|---|
| Logical order | H1 -> H2 -> H3; don't skip levels |
| One idea per heading |
Each heading = one topic |
|
Scannable | Headings should summarize section content |
|
Keyword variation | Use related keywords in subheadings |
Structure
CODEBLOCK0
Common Issues
| Issue | Fix |
|---|
| Multiple H1s | Use single H1; use H2 for other sections |
| Skipped levels |
Use H2 after H1, H3 after H2 |
| Generic headings | Make descriptive; avoid "Introduction," "Conclusion" |
| Keyword stuffing | Natural language; avoid forced keywords |
Output Format
- - H1 recommendation (with keyword)
- H2-H6 outline for content
- Hierarchy check
- References: Google headings
Related Skills
- - featured-snippet: H2/H3 for snippet extraction; semantic HTML for list/table snippets
- page-metadata: Hreflang, meta robots; metadata complements heading structure
- content-optimization: H2 keyword placement, quantity, tables, lists; complements heading structure
- article-page-generator: Article page H1-H3 structure, intro/body/conclusion
- title-tag: H1 should align with title tag
- schema-markup: Article schema uses headline (often H1)
- content-strategy: Content outline informs headings
SEO页面优化:标题结构
指导标题(H1-H6)的SEO和内容结构优化。
调用时:在首次使用时,如有帮助,可先用1-2句话说明本技能涵盖的内容及其重要性,然后提供主要输出。在后续使用或用户要求跳过时,直接进入主要输出。
范围(页面SEO)
- - H1标签:每页一个;标题清晰;与内容匹配;主要关键词靠近开头
- 标题标签(H1-H6):逻辑层级;标题中包含关键词;每个标题一个主题
初始评估
首先检查项目上下文: 如果存在.claude/project-context.md或.cursor/project-context.md,读取其中的目标关键词。
识别:
- 1. 页面类型:首页、文章、产品等
- 主要关键词:目标搜索查询
- 内容大纲:主要章节和子章节
最佳实践
H1
自然包含目标关键词 |
|
描述性 | 清晰描述页面内容 |
|
匹配意图 | 与标题标签和用户意图一致 |
H2-H6层级
| 原则 | 指南 |
|---|
| 逻辑顺序 | H1 -> H2 -> H3;不要跳级 |
| 每个标题一个主题 |
每个标题 = 一个主题 |
|
可扫描性 | 标题应概括章节内容 |
|
关键词变体 | 在子标题中使用相关关键词 |
结构
H1(页面标题)
-> H2(章节1)
-> H3(子章节)
-> H3
-> H2(章节2)
-> H3
-> H2(章节3)
常见问题
| 问题 | 修复 |
|---|
| 多个H1 | 使用单个H1;其他章节使用H2 |
| 跳级 |
H1后使用H2,H2后使用H3 |
| 通用标题 | 使其具有描述性;避免引言、结论 |
| 关键词堆砌 | 使用自然语言;避免强制插入关键词 |
输出格式
- - H1 建议(含关键词)
- H2-H6 内容大纲
- 层级 检查
- 参考资料:Google标题
相关技能
- - 精选摘要:用于摘要提取的H2/H3;用于列表/表格摘要的语义HTML
- 页面元数据:Hreflang、元机器人;元数据补充标题结构
- 内容优化:H2关键词位置、数量、表格、列表;补充标题结构
- 文章页面生成器:文章页面H1-H3结构、引言/正文/结论
- 标题标签:H1应与标题标签一致
- 结构化标记:文章结构化使用标题(通常为H1)
- 内容策略:内容大纲指导标题设置