HTML
tag
Example
When the topic of the content changes, use
the tag to separate it:
HTML
HTML is a language used to describe web pages.
CSS
CSS defines how HTML elements are displayed.
Try it »
Browser support

All major browsers support
tag.
Tag Definition and Usage Notes
The tag defines a thematic change in an HTML page (such as a shift in topic) and is displayed as a horizontal line.
The element is used to separate content in an HTML page (or define a change).
Differences between HTML 4.01 and HTML5
In HTML5,
Defines a thematic change in the content and is displayed as a horizontal line.
In HTML 4.01,
The tag is displayed only as a horizontal line.
In HTML 4.01, all layout attributes are deprecated. These attributes are no longer supported in HTML5. Please use CSS to style
the element.
Differences between HTML and XHTML
In HTML,
the tag has no end tag.
In XHTML,
The tag must be closed properly, for example
.
property
| property | Value | Description |
|---|---|---|
| align | left |
center
right | HTML5 does not support。HTML 4.01 已废弃。 Specifies
元素的对齐方式 |
| noshade | noshade | Not supported in HTML5. Deprecated in HTML 4.01. Specifies
that the element's color is rendered as a solid color. | | size | pixels | Not supported in HTML5. Deprecated in HTML 4.01. Specifies
the height of the element. | | width | pixels
% | Not supported in HTML5. Deprecated in HTML 4.01. Specifies
the width of the element. |
Global Attributes
The tag supports [HTML Global Attributes](/tags/ref-standardattributes.html).
Event attribute
The tag supports [HTML Event Attributes](/tags/ref-eventattributes.html).