hr ElementThe hr element is a block-level element declared by the XHTML 1.1 Presentation Module (Block Presentation)
Elements in the Presentation Module are:big | small | sub | sup | i | b | tt (Inline Presentation Support Module)hr (Block Presentation Support Module)
The hr element inserts a horizontal rule in order to
visually separate regions of text. Rendering of the rule varies
from browser to browser and CSS
styling of this element does not always produce consistent results.
For example:
This example code is rendered as follows:
Paragraph above the rule
Paragraph below the rule
There is no styling applied to the hr element on this page and so is displayed using
your browser's default behaviour.
There are no #REQUIRED attributes on the hr element.
There are no specific attributes declared on the hr element.
hr element are listed below:class [ type NMTOKENS ]id [ type ID ]style [ type CDATA ], from the Style Attribute Module (deprecated)title [ type Text ]xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]All attributes in the
Events Attribute Collection
are supported:onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
hr element is:
EMPTY
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
hrThis element is empty and may have no children.
hrbodyblockquote, divdd, litd, thbutton, fieldset, formmapnoscriptdel, insobject