HR (Horizontal Rule) TAG and ATTRIBUTES

<HR>

This element is used to insert a horizontal rule (line) to visually separate document sections. Rules are usually rendered as a raised or etched line.


ATTRIBUTES

ALIGN = "CENTER | LEFT | RIGHT"
CLASS = "class name(s)"
COLOR = "color name | #RRGGBB"
NOSHADE
SIZE = "pixels"
STYLE = "style information"
WIDTH = "percentage | pixels"

EVENTS

onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup


ALIGN  This attribute controls the horizontal alignment of the rule with respect to the page. The default value is CENTER.

CLASS  See Cascading Style Sheets (CSS) Information.

COLOR  This attribute sets the rule color using either a named color or a color specified in the hexadecimal #RRGGBB format. This attribute is currently supported only by Internet Explorer.

NOSHADE  This attribute causes the rule to be rendered as a solid bar without shading.

SIZE  This attribute indicates the height in pixels of the rule.

STYLE  See Cascading Style Sheets (CSS) information.

WIDTH  indicates how wide the rule should be specified either in pixels or as a percent of screen width, such as 80%.
Back to Top