HTML

HTMLHRElement

HTMLHRElement<hr>

The HTMLHRElement interface has special properties for manipulating <hr> elements (in addition to those of the HTMLElement interface, which is also available to it through inheritance). A thematic break in an HTML page is defined by the <hr> element tag (e.g. a shift of topic). When used to divide information (or indicate a change) in an HTML page, the <hr> element is most frequently shown as a horizontal rule.

Browser Compatibility

Element Chrome Edge Firefox Safari Opera
<hr> Yes Yes Yes Yes Yes