Skip to content

HTML Horizontal Rule

What if you wanted to create a horizontal line going across the screen to break up text even more. This is what the <hr /> tag was made for. Using a <hr /> tag will by default draw a black line across the screen.

Note: Just like line breaks (i.e the <br /> tag), the <hr /> tag has no closing tag.

HTML Code:

Single line
<hr />
Double line
<hr /><hr />
Triple line
<hr /><hr /><hr />

HTML Output:

Single line

Double line

Triple line


Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <p><b><i><pre><a><img><em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><h1><h2><h3><h4><h5><h6>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options