HTML 4.0 Logo Reader Icon OEB 1.0 Logo PPC Logo <hr />Horizontal Rule

This singleton tag creates a rule of the size and shape indicated by its attributes. Note the non-OEB color attribute is not supported. The non-OEB noshade attribute is a supported (MSR) extension. By default, the <hr> tag generates a horizontal rule with a height of two pixels.

Attributes

align, class, color (ignored), id, lang, noshade (MSR), size, style, title (ignored), width

Sample

Horizontal Rule Sample diagram

Sample Code

<h4>Plain horizontal rule</h4>
<hr />
<h4>Horizontal rule, 10 pixel size</h4>
<hr size="10" />
<h4>Horizontal rule, width 25% of window</h4>
<hr width="25%" />
<h4>Horizontal rule, align right, 25% of the window</h4>
<hr width="25%" align="right" />
<h4>Unshaded horizontal rule</h4>

© 2000 Microsoft Corporation. All rights reserved. Terms of use.