robots.txt – Controlling Search Engine Crawling with Precision
The HTML heading structure uses the <h1> to <h6> tags to create a hierarchical outline of content on a web page. These headings support both readability for users and semantic clarity for search engines and assistive technologies.
Hierarchy and Purpose:
- <h1>: Main headline – should be unique per page and reflect the primary topic.
- <h2>: Major subsections under the H1 – like chapters or sections.
- <h3>: Subsections within an H2 – typically used for smaller segments.
- <h4>–<h6>: Additional depth for complex content structures.
Example Structure:
<h1>SEO Basics</h1>
<h2>What is SEO?</h2>
<h2>On-Page Optimization</h2>
<h3>Title Tag</h3>
<h3>Meta Description</h3>
Best Practices for SEO:
- Only one H1 per page, preferably at the top.
- Avoid using headings only for styling (e.g. using H2 for visual size).
- Maintain logical hierarchy – don’t skip levels (e.g. H2 → H4).
- Headings should include relevant keywords and describe the following content.
Note: A well-structured heading hierarchy improves accessibility, supports Google’s understanding of content themes, and is key to features like Featured Snippets and FAQ sections.