HTML hr标签

本文概述

HTML <hr>标记用于指定HTML文档中的段落级主题中断。当你突然更改HTML文档中的主题时使用它。它在它们之间画一条水平线。在HTML中, 它也称为水平规则。


HTML hr标签

<h2>HTML</h2>
<p>HTML is a language for describing web pages.</p>
<hr/>
<h2>HR Tag </h2>
<p> HR tag is used to draw a horizontal line within the texts to sepate content.<p>

立即测试

输出:

的HTML

HTML是用于描述网页的语言。


人力资源标签

HR标签用于在文本中绘制水平线以分隔内容。


HTML 4.01和HTML5中的HR标签?

在HTML 4.01中, <hr>标记表示水平线, 而在HTML 5中, 它定义了主题中断。 HTML5中使用CSS代替了布局属性。


HTML和XHTML中的HR标签

在HTML中, 不必关闭<hr>标记, 而在XHTML中必须正确关闭<hr>标记。


支持的浏览器

Element Chrome IE Firefox Opera Safari
<hr> Yes Yes Yes Yes Yes

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_49832.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?