HTML horizontal line - how to use <hr> tag

The HTML <hr> tag is used to define a horizontal line which shows a separation of content on the current topic. It could be used ti separate multiple topics within a document.

Attributes

The <hr> tag supports the global and event attributes.

Examples:

<body> <h1>Main Demo</h1> <p>some content</p> <!--show a horizontal line to separate a different topic--> <hr /> <h2>Another demo</h2> <p>some content</p> <!--style a hr tag--> <hr style="background-color:red;" /> </body>