Home > Web Front-end > Front-end Q&A > How to use html hr tag

How to use html hr tag

藏色散人
Release: 2019-05-27 14:18:55
Original
5315 people have browsed it

html The hr tag is used to create a horizontal line in an HTML page. The horizontal rule (horizontal rule) can visually separate the document into various parts.

How to use html hr tag

#html How to use hr tag?

Function: Create a horizontal line in the HTML page.

Description: The horizontal rule can visually separate the document into parts.

Note:

In HTML, the


tag does not have a closing tag. In XHTML,
must be closed properly, 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.

html hr tag example

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

Effect:

How to use html hr tag

The above is the detailed content of How to use html hr tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template