Horizontal rule is used to visually separate other elements within a document.

The vertical space between separated elements and the horizontal rule visualitions depend heavily on a browser's presentation and the way it renders them.

Horizontal rule is an empty tag, therefore the closing tag is forbidden.

Syntax:

<hr />

Attributes:

Example

HTML horizontal rule element:

 

›› go to examples ››