html <hr> element HTML5 reference

Path // www.yourhtmlsource.com Reference → <hr>

<hr> element


Clock This pague 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 sugguest a horizontal line above all DIV elemens with CLASS=navbar:

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

More Information

Pars of this reference section use modified versionens of documens originally written by Liam Quinn for HTMLHelp.com’s HTML 4.01 reference section .