Skip to content

<h1> - Level 1 Heading

Block-level HTML 1.0

The <h1> element represents the most important heading on a page, typically used for the main title or primary topic. It’s the top level in HTML’s six-level heading hierarchy.

Result
<h1>Your Main Page Title</h1>

The <h1> element wraps the text that serves as your page’s primary heading. It should be the most prominent heading on the page.

The <h1> element supports all global attributes like id, class, style, and lang.

<h1 id="main-title" class="page-heading">Main Title</h1>

The most common use is as the main page title:

Result

In articles or blog posts, the <h1> represents the article title:

Result
Result
Result
<h1>Ultimate Guide to HTML Headings</h1>
<h2>Understanding Heading Hierarchy</h2>
<h2>Best Practices</h2>

Your <h1> should clearly describe the page content:

<h1>How to Build a Portfolio Website in 2025</h1>
<h1>Beginner's Guide to HTML Forms</h1>
<!-- Good: Natural keyword usage -->
<h1>HTML Tutorial: Learn Web Development from Scratch</h1>
<!-- Avoid: Keyword stuffing -->
<h1>HTML Tutorial HTML Guide Learn HTML HTML Web Development HTML</h1>

Screen readers use headings to navigate. Always start with <h1> and don’t skip levels:

<h1>Main Page Title</h1>
<h2>Section Title</h2>
<h3>Subsection Title</h3>

Use headings for structure, not visual appearance:

<h1>Article Title</h1>
<p class="large-text">Important note goes here</p>

Users can jump between headings using screen readers. A clear <h1> helps them understand the page immediately:

<!-- Screen reader announces: "Heading level 1: Complete Guide to Responsive Design" -->
<h1>Complete Guide to Responsive Design</h1>
BrowserVersionNotes
Chrome1+Full support
Firefox1+Full support
Safari1+Full support
Edge12+Full support
IE3+Full support

The <h1> element has been supported since the earliest browsers.

Container for introductory content, often contains headings. Learn more →

Self-contained composition that can have its own <h1>. Learn more →

Thematic grouping of content, usually with a heading. Learn more →