HTML Horizontal Rule

HTML element <hr> defines a horizontal rule, which generates a line across a web page.

It is an empty element, which doesn’t need a closing tag and content.

This can be used to include a thematic break to separate different sections of the content.

Example

<!doctype html>
<html lang="en">
<head>
</head>
<body>
    <h1>Line Break and Horizontal Rule</h1>
    <hr>
    <h1>Section 1</h1>
    <p>Some paragraph text goes here.Some paragraph text goes here.Some paragraph text goes here.Some paragraph text goes here.</p>
    <hr>
    <h1>Section 2</h1>
    <p>Some paragraph text goes here.Some paragraph text goes here.Some paragraph text goes here.Some paragraph text goes here.</p>
</body>
</html>

Overall

HTML Horizontal Rule is used to separate the content into different logical sections.