Skip to the page
html reference · text

HTML <hr> tag

closing tag
none — void element
void element
yes
lives inside
<body>
typically holds
n/a (self-contained)

Where it goes

Between two chunks of content, on its own line. Not inside a sentence.

Example

<p>End of section one.</p>
<hr>
<p>Start of section two.</p>

Open this example in the editor →

Common mistakes

  • Writing </hr>. Like <br>, it has no closing tag.
  • Using it as decoration between every item. It means "the topic changes," so a page full of them says nothing. A border in CSS is the tool for decoration.
  • Putting it inside a <p>. It is a block, so the browser closes the paragraph around it and you get two half paragraphs.

Related

Updated 24 October 2026. Practice it in the html route, or read more on MDN.