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 "
".
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
In HTML, the
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>
Output result:
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!