css hr what does it mean

藏色散人
Release: 2023-01-06 11:15:57
Original
4284 people have browsed it

css hr refers to the


tag, which defines theme changes in the HTML page and is displayed as a horizontal line; the
element is used to divide the content in the HTML page or define a change .

css hr what does it mean

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

css hr What does it mean? 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).

Differences between HTML 4.01 and HTML5

In HTML5,


defines the theme variation in the content and is displayed as a horizontal line.

In HTML 4.01, the


tag appears only as a horizontal line.

In HTML 4.01, all layout attributes are obsolete. These attributes are no longer supported in HTML5. Use CSS to style the


element.

Differences between HTML and XHTML

In HTML, the


tag does not have a closing tag.

In XHTML, the


tag must be closed correctly, such as
.

Attributes

css hr what does it mean

Code example:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title></title> 
</head>
<body>

<h1>HTML</h1>
<p>HTML 是用于描述 web 页面的一种语言。</p>

<hr>

<h1>CSS</h1>
<p>CSS 定义如何显示 HTML 元素。</p>

</body>
</html>
Copy after login

Effect:

css hr what does it mean

Recommended learning: "css video tutorial"

The above is the detailed content of css hr what does it mean. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
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