**`<h1>`** is the highest level of the six HTML heading elements (`<h1>`–`<h6>`), and browsers render it with the largest default font size and boldest weight. Beyond styling, it plays a real structural role: it tells search engines and screen readers 'this is the primary topic of this page'. The long-standing best practice is **exactly one visible `<h1>` per page**, matching (or closely echoing) the page's `<title>`, so both users skimming the page and search engines crawling it immediately understand its main subject.
1Understanding <h1>
`<h1>` is the highest level of the six HTML heading elements (<h1>–<h6>), and browsers render it with the largest default font size and boldest weight. Beyond styling, it plays a real structural role: it tells search engines and screen readers 'this is the primary topic of this page'. The long-standing best practice is exactly one visible `<h1>` per page, matching (or closely echoing) the page's <title>, so both users skimming the page and search engines crawling it immediately understand its main subject.
Don't choose a heading level based on how big or small you want the text to look — that's what CSS font-size is for. Choose the heading level based on its actual place in the document's logical outline.
<body>
<h1>Learn HTML Fundamentals</h1>
<p>Welcome to this free interactive course.</p>
</body>2Practical Example
Here is a real-world application of <h1> showing how it is used in production HTML.
<!-- Anti-pattern: using h1 purely because it looks big -->
<!-- Bad -->
<h1>Related Products</h1> <!-- this is a sidebar widget title, not the page's main topic -->
<!-- Good -->
<h2>Related Products</h2>3Best Practices
Follow these guidelines when working with <h1>:
1. Use exactly one <h1> per page, describing its main topic
2. Don't skip heading levels going down (h1 straight to h3) — go h1, then h2, then h3
3. Never pick a heading tag purely for its default visual size — restyle with CSS instead
Tip: Don't choose a heading level based on how big or small you want the text to look — that's what CSS font-size is for. Choose the heading level based on its actual place in the document's logical outline.
<body>
<h1>Learn HTML Fundamentals</h1>
<p>Welcome to this free interactive course.</p>
</body>