The best HTML <hr> tag Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Tag definitions and instructions,Differences between HTML 4.01 and HTML5,Differences between HTML and XHTML,Attributes,Global Properties,Event Properties,
When the subject matter changes, use <hr> tag separated:
All major browsers support <hr> tag.
<Hr> tag defines an HTML page relating to the change (such as the subject's), and displayed as a horizontal line.
<Hr> element is used to separate HTML page content (or a change in the definition).
In HTML5, <hr> define the content of the theme changes, and appears as a horizontal line.
In HTML 4.01, <hr> tag is only displayed as a horizontal line.
In HTML 4.01, all layout properties are obsolete . In HTML5 these attributes are no longer supported. Use CSS to define the style for the <hr> element.
In HTML, <hr> tag has no end tag.
In XHTML, <hr> tag must be properly closed, such as <hr />.
属性 | 值 | 描述 |
---|---|---|
align | left center right |
HTML5 不支持。HTML 4.01 已废弃。 规定 <hr> 元素的对齐方式 |
noshade | noshade | HTML5 不支持。HTML 4.01 已废弃。 规定 <hr> 元素的颜色呈现为纯色。 |
size | pixels | HTML5 不支持。HTML 4.01 已废弃。 规定 <hr> 元素的高度。 |
width | pixels % |
HTML5 不支持。HTML 4.01 已废弃。 规定 <hr> 元素的宽度。 |
<hr> tag supports HTML global properties .
<hr> tag supports HTML event properties .