Initializing Core...
Initializing Core...
Operational
HTML headings create structure and hierarchy in your web pages. They organize content from main titles to subsections, making pages accessible and SEO-friendly.
HTML provides six heading levels from most to least important:
<h1>Main Title</h1> <!-- Page title --><h2>Section Title</h2> <!-- Major sections --><h3>Subsection</h3> <!-- Under h2 --><h4>Minor Section</h4> <!-- Under h3 --><h5>Small Heading</h5> <!-- Rarely used --><h6>Smallest Heading</h6> <!-- Rarely used -->
<h1> per page - Acts as the main title<h1>Complete Guide to Web Development</h1><h2>Frontend Development</h2><h3>HTML Basics</h3><h3>CSS Styling</h3><h2>Backend Development</h2><h3>Server Setup</h3><h3>Databases</h3>
<!-- ❌ Wrong: Skipping levels --><h1>Title</h1><h3>Subsection</h3><!-- ❌ Wrong: Multiple h1 tags --><h1>Main Title</h1><h1>Another Title</h1><!-- ❌ Wrong: Using for styling --><h2>This text just needs to be bigger</h2>
<h2 aria-describedby="section-intro">Getting Started</h2><p id="section-intro">This section covers the basics</p>
<h1> tag carries the most SEO weightBrowser creates an outline from your headings:
1. Web Development Guide (h1)
1.1. Frontend Development (h2)
1.1.1. HTML Basics (h3)
1.1.2. CSS Styling (h3)
1.2. Backend Development (h2)
1.2.1. Server Setup (h3)
Most browsers show heading structure in accessibility panels.
<h1>How to Learn JavaScript</h1><h2>Prerequisites</h2><h2>Learning Path</h2><h3>Beginner Level</h3><h3>Intermediate Level</h3><h2>Practice Projects</h2>
<h1>API Documentation</h1><h2>Authentication</h2><h3>API Keys</h3><h3>OAuth</h3><h2>Endpoints</h2><h3>Users</h3><h4>Create User</h4><h4>Update User</h4>
| Tag | Purpose | Usage |
|---|---|---|
<h1> | Page title | One per page |
<h2> | Main sections | Multiple allowed |
<h3> | Subsections | Under h2 |
<h4> | Sub-subsections | Under h3 |
<h5> | Minor headings | Rarely needed |
<h6> | Smallest headings | Very rare |