HTML hr is a tag used to create a horizontal line in the page. In HTML, the
tag has no closing tag, and its usage syntax is such as "This is the paragraph
This is the paragraph".
Recommended: "HTML Video Tutorial"
HTML
Tag
Definition and Usage
The
Horizontal rule (horizontal rule) can visually separate the document into various parts.
Differences between HTML and XHTML
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.
Optional attributes
Example:
<html> <body> <p>hr 标签定义水平线:</p> <hr /> <p>这是段落。</p> <hr /> <p>这是段落。</p> <hr /> <p>这是段落。</p> </body> </html>
Running effect:
The above is the detailed content of HTML hr what does it mean. For more information, please follow other related articles on the PHP Chinese website!