W3 3.2y
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y

<HR>

Description

Draw a horizontal rule.

DTD

<!ELEMENT HR - O EMPTY -- horizontal rule -->
<!ATTLIST HR
  %coreattrs;                          -- id, class, style, title --
  %events;
  >
from the HTML 4.0 DTD, "Copyright © W3C, (MIT, INRIA, Keio). All Rights Reserved."

Attributes

Core attributes: class id style title
Events: onclick ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onkeypress onkeydown onkeyup

W3 3.2y
4.0d
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
ALIGN
Align the rule. Possible values are CENTER, LEFT and RIGHT. Default is align="center".
W3 3.2n
4.0n
NS 3.0n
4.0n
IE 3.0y
4.0y
TV 1.2n
2.1n
COLOR
Draw the rule in a specific color.
W3 3.2n
4.0n
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2y
2.1y
INVERTBORDER
Use the invertborder attribute to draw a horizontal rule that seems raised from the surface of the page. By default, when the invertborder attribute is not set, the horizontal rule is drawn embossed into the surface of the page.
W3 3.2y
4.0d
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
NOSHADE
Do not use a 3d-effect to draw the rule.
W3 3.2y
4.0d
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
SIZE
Define the height of the rule in pixels.
W3 3.2y
4.0d
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
WIDTH
Define the width of the rule. Values can be given in pixels or percentage of the available width between the current left and right margins.

Examples

Source
<HR size="10">
<HR size="7">
<HR size="4">
 
Result



 
Source
<HR width="50%" align="left">
 
Result

 
Source
<HR color="#0000ff" noshade size="5">
 
Result

Statistics