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

How to use html hr tag

藏色散人
藏色散人Original
2019-05-27 14:18:555332browse

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>

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!

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
Previous article:How to use html head tagNext article:How to use html head tag