The HTML horizontal rule tag (<hr>) creates a horizontal line in a web page and can be used to separate or divide content. Note the <hr> tag does not require an end tag (or closing tag) in the HTML code example below.
1 2 3 4 5 |
<h1>Title</h1> <hr> <p>This paragraph and the Title should be separated by a horizontal line.</p> |
The above HTML code should render something that looks like this:
Title
This paragraph and the Title should be separated by a horizontal line.