Path // www.yourhtmlsource.comReference → <hr>

<hr> element


Clock This page was last updated on 2025-11-16



The HR element defines a horizontal rule for visual browsers. While this element is inherently presentational, it can be used structurally as a section divider. However, for greater flexibility the HR element can be replaced with the border-bottom or border-top properties of Cascading Style Sheets. For example, the following style rule would suggest a horizontal line above all DIV elements with CLASS=navbar:

div.navbar { border-top: solid medium navy }

More Information

Parts of this reference section use modified versions of documents originally written by Liam Quinn for HTMLHelp.com’s HTML 4.01 reference section.