Syntax
<HR>
Attribute Specifications
ALIGN=[ left | center | right ] (horizontal alignment)
NOSHADE (solid line)
SIZE=Pixels (line height)
WIDTH=Length (line width)
core attributes
common events
Contents:
Empty
Contained in:
APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DEL, DD, DIV, FIELDSET, FORM, IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH
<style>
div#navbar { border-top: solid medium navy }
</style>
<div id="navbar">This is the title</div>
HR's deprecated ALIGN attribute suggests the horizontal alignment of the line. Possible values are left, right, and center. The deprecated WIDTH 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 width property of Cascading Style Sheets provides greater flexibility in suggesting the width of horizontal rules.