<HR> | NN all IE all HTML all | ||
<HR> | End Tag: Forbidden | ||
The HR element draws a horizontal rule according to visual rules built into the browser with a variety of attribute controls. As a block element, the HR element starts and ends its rule on its own line, as if the element were surrounded by BR elements. This element is not a content container, and many of the attributes that have been in use for a long time are deprecated in HTML 4.0 in favor of style sheet rules. The HTML recommendation leaves default appearance specifications up to the browser maker. | |||
Example
<HR ALIGN="center" WIDTH="80%"> | |||
Object Model Reference
|
ALIGN | NN all IE all HTML 3.2 | ||
ALIGN=" | Optional | ||
Determines how the HR element is rendered in physical relation to the next outermost container (usually the BODY). The ALIGN attribute is deprecated in HTML 4.0 in favor of the align: style sheet attribute. | |||
Example
<HR ALIGN="right"> | |||
Value One of three case-insensitive values: center | left | right. | |||
| |||
Object Model Reference
|
COLOR | NN n/a IE 4 HTML n/a | ||
COLOR=" | Optional | ||
Sets the color of the HR element in Internet Explorer. Setting the COLOR attribute also turns on the NOSHADE attribute. If you want a 3-D effect rule to appear with a color, use the style sheet color: attribute. Navigator 4, however, doesn't apply color style sheet rules to HR elements. | |||
Example
<HR COLOR="salmon"> | |||
Value A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names. | |||
| |||
Object Model Reference
|
NOSHADE | NN all IE all HTML 3.2 | ||
NOSHADE | Optional | ||
The presence of the NOSHADE attribute tells the browser to render the rule as a flat (not 3-D) line. In Internet Explorer only, if you set the COLOR attribute, the browser changes the default line style to a no-shade style. | |||
Example
<HR NOSHADE> | |||
Value The presence of the attribute turns on no-shade rendering. | |||
| |||
Object Model Reference
|
SIZE | NN all IE all HTML 3.2 | ||
SIZE=" | Optional | ||
You can override the default thickness of the HR element by assigning a value to the SIZE attribute. The SIZE attribute is deprecated in HTML 4.0 in favor of the height: style sheet attribute. You can use this style rule in Internet Explorer 4, but not in Navigator 4. | |||
Example
<HR SIZE=4> | |||
Value Any positive integer. A setting of zero still draws a one-pixel thick rule. | |||
| |||
Object Model Reference
|
WIDTH | NN all IE all HTML 3.2 | ||
WIDTH=" | Optional | ||
Defines the precise pixel width or percentage of available width (relative to the containing element) to draw the HR element rule. This attribute is deprecated in HTML 4.0 in favor of the width: style sheet attribute. | |||
Example
<HR WIDTH="75%"> | |||
Value Any length value in pixels or percentage of available space. | |||
| |||
Object Model Reference
|