This is a paragraph< /p>


This is a paragraph"."/>


This is a paragraph< /p>


This is a paragraph".">

Home  >  Article  >  Web Front-end  >  HTML hr what does it mean

HTML hr what does it mean

藏色散人
藏色散人Original
2020-11-13 11:32:2918837browse

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".

HTML hr what does it mean

Recommended: "HTML Video Tutorial"

HTML


Tag

Definition and Usage

The


tag creates a horizontal line in an HTML page.

Horizontal rule (horizontal rule) can visually separate the document into various parts.

Differences between HTML and XHTML

In HTML, the


tag does not have a closing tag.

In XHTML,


must be closed correctly, such as
.

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

HTML hr what does it mean

Example:

<html>
<body>
<p>hr 标签定义水平线:</p>
<hr />
<p>这是段落。</p>
<hr />
<p>这是段落。</p>
<hr />
<p>这是段落。</p>
</body>
</html>

Running effect:

HTML hr what does it mean

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn