Home > Web Front-end > Front-end Q&A > What is the horizontal line mark in html5

What is the horizontal line mark in html5

WBOY
Release: 2021-12-17 14:35:29
Original
12558 people have browsed it

The horizontal line mark in HTML5 is "


"; the "hr" tag can divide the content of the page by displaying a horizontal line, thereby defining the theme changes in the html page. The "hr" tag is a single tag There is no closing tag, and the syntax is "
" or "
".

What is the horizontal line mark in html5

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

What is the horizontal line mark in html5

The horizontal line mark in html is the hr tag. The


tag defines a topic change (such as a transfer of topic) in an HTML page and is displayed as a horizontal line. The
element is used to separate content in an HTML page (or to define a variation).

In HTML, the


tag does not have a closing tag.

The example is as follows:

<html>
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
</head>
<body>
<h1>HTML</h1>
<p>HTML 是用于描述 web 页面的一种语言。</p>
<hr>
<h1>CSS</h1>
<p>CSS 定义如何显示 HTML 元素。</p>
</body>
</html>
Copy after login

Output result:

What is the horizontal line mark in html5

Recommended tutorial: "html video tutorial"

The above is the detailed content of What is the horizontal line mark in html5. 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