ⓘ hr – thematic break CHANGED # T
The
hr
element represents a paragraph-level thematic break.
Additional constraints and admonitions #
-
The “align” attribute on the “hr” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “width” attribute on the “hr” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “noshade” attribute on the “hr” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “size” attribute on the “hr” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “color” attribute on the “hr” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
Permitted parent elements #
any element that can contain
flow elements
Changes in HTML5 #
Although previous versions of HTML defined the
hr
element only in presentational terms, the element has now been
given the specific semantic purpose of representing a
“paragraph-level thematic break”.
Details #
Some examples of thematic breaks that can be marked up
using the
hr
element include a scene change in a story, or a transition to
another topic within a section of a reference book.
Typical default display properties #
hr {
display: block;
margin-before: 0.5em;
margin-after: 0.5em;
margin-start: auto;
margin-end: auto;
border-style: inset;
border-width: 1px; }