<p>The <strong class=html>HR</strong> element defines a <em>horizontal rule</em> for visual browsers. While this element is inherently presentational, it can be used structurally as a section divider. However, for greater flexibility the <strong class=html>HR</strong> element can be replaced with the <strong class=css><a href="http://www.htmlhelp.com/reference/css/box/border-bottom.html">border-bottom</a></strong> or <strong class=css><a href="http://www.htmlhelp.com/reference/css/box/border-top.html">border-top</a></strong> properties of <a href="http://www.htmlhelp.com/reference/css/">Cascading Style Sheets</a>. For example, the following style rule would suggest a horizontal line above all <strong class=html><a href="div.html">DIV</a></strong> elements with <strong class=html>CLASS=navbar</strong>:</p>
<p class=example><code class=css>div.navbar { border-top: solid medium navy }</code></p>
<div class=transitional>
<p><strong class=html>HR</strong>'s <a href="../deprecated.html">deprecated</a> <strong class=html>ALIGN</strong> attribute suggests the horizontal alignment of the line. Possible values are <strong class=html>left</strong>, <strong class=html>right</strong>, and <strong class=html>center</strong>. The deprecated <strong class=html>WIDTH</strong> attribute specifies the width of the line as a percentage or a number of pixels. If a width is specified, percentages are generally preferred since they adjust to varying window sizes. The <strong class=css><a href="http://www.htmlhelp.com/reference/css/box/width.html">width</a></strong> property of <a href="http://www.htmlhelp.com/reference/css/">Cascading Style Sheets</a> provides greater flexibility in suggesting the width of horizontal rules.</p>
<p>The boolean <strong class=html>NOSHADE</strong> attribute suggests that the rule be rendered as a solid line rather than the groove style commonly used. The <strong class=html>SIZE</strong> attribute suggests the height of the line in pixels. These attributes are both <a href="../deprecated.html">deprecated</a> in favor of <a href="http://www.htmlhelp.com/reference/css/">style sheets</a>.</p>
</div>
<h2>More Information</h2>
<ul>
<li><a href="http://www.w3.org/TR/REC-html40/present/graphics.html#edef-HR">HR in <abbr class=initialism title="World Wide Web Consortium">W3C</abbr> HTMLá4.0 Recommendation</a></li>
<li><a href="http://www.w3.org/TR/REC-html32#hr">HR in <abbr class=initialism title="World Wide Web Consortium">W3C</abbr> HTMLá3.2 Recommendation</a></li>
<li><a href="http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.9">HR in HTMLá2.0 Standard</a></li>
<li><a href="http://www.htmlhelp.com/reference/wilbur/block/hr.html">HR in <abbr class=initialism title="Web Design Group">WDG</abbr> HTMLá3.2 Reference</a></li>
<li><a href="http://www.hut.fi/u/jkorpela/HTML3.2/5.28.html">HR in <cite>Learning HTMLá3.2 by Examples</cite></a></li>
</ul>
<div class=footer>
<address>Maintained by <a href="http://www.htmlhelp.com/%7Eliam/">Liam Quinn</a> <<a href="mailto:liam@htmlhelp.com">liam@htmlhelp.com</a>></address>