Horizontal rule can visually separate a document into parts.
In HTML, the
In XHTML,
In HTML 4.01, all rendering attributes of the hr element are deprecated.
In XHTML 1.0 Strict DTD, all rendering attributes of the hr element are not supported.
Example:
<html> <body> <p>hr 标签定义水平线:</p> <hr /> <p>这是段落。</p> <hr /> <p>这是段落。</p> <hr /> <p>这是段落。</p> </body> </html>
The rendering is as follows: