This <hr> element creates a horizontal rule going across the page. The default setting causes the line to be shaded, giving it a 3D appearance.
<hr> |
Yes | Yes | Yes | Yes | Yes |
None.
The <hr> tag supports the Global Attributes in HTML.
The <hr> tag supports the Event Attributes in HTML.
hr { display: block; margin-top: 0.5em; margin-bottom: 0.5em; margin-left: auto; margin-right: auto; border-style: inset; border-width: 1px; }
A demo showing how to use <hr> tag.
<html>
<body>
paragraph#1
<hr>
paragraph#2
<hr>
</body>
</html>