HTML - Horizontal Rule

Use <hr/> to create a horizontal line. THis tag is similar with line break.

<hr/>

Use

<hr/><hr/>

With

<hr/>

Caution

<hr/>

Display


Use



With


Caution


 

The horizontal line can be useful in different circumstances, like you can see in the next example : a footnote.

<hr />

<p>1. "The Hobbit", JRR Tolkein.<br />

2. "The Fellowship of the Ring" JRR Tolkein.</p>

Display


1. "The Hobbit", JRR Tolkein.
2. "The Fellowship of the Ring" JRR Tolkein.

 

As you can see, everything that this tag does is to draw a horizontal line separating different parts of the content or it just decorates the page. Use it with skill and it will give unexpected results.