Skip to content

<hr> - Thematic Break (Horizontal Rule)

Block-level Self-closing HTML 1.0

The <hr> element represents a thematic break between content sections. It’s traditionally rendered as a horizontal line but semantically indicates a shift in topic or scene within a document.

Result
<!-- HTML5 style (recommended) -->
<hr>
<!-- XHTML style (also valid) -->
<hr />

The <hr> element is self-closing and doesn’t require a closing tag.

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

<hr class="section-divider" id="break-1">
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
<section>
<h2>Topic A</h2>
<p>Content about topic A...</p>
<hr> <!-- Thematic shift -->
<h2>Topic B</h2>
<p>Content about topic B...</p>
</section>
<div style="border-bottom: 1px solid #ccc; margin: 1rem 0;"></div>
<!-- Or use CSS borders on existing elements -->

Screen readers announce horizontal rules as separators:

<!-- Screen reader: "Separator" or "Horizontal rule" -->
<p>First section.</p>
<hr>
<p>Second section.</p>

The <hr> element has an implicit ARIA role of separator:

<!-- These are equivalent -->
<hr>
<hr role="separator">

Add context for screen reader users when needed:

<hr aria-label="End of introduction">
Result
Result
Result
<article>
<h2>Section 1</h2>
<p>Content...</p>
<hr>
<h2>Section 2</h2>
<p>Content...</p>
</article>
<article>
<section>
<h2>First Topic</h2>
<p>Content...</p>
</section>
<section>
<h2>Second Topic</h2>
<p>Content...</p>
</section>
</article>
BrowserVersionNotes
Chrome1+Full support
Firefox1+Full support
Safari1+Full support
Edge12+Full support
IE3+Full support

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