Name

<hr> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; Opera3

Synopsis

<hr>

Adds a horizontal rule to the page.

Attributes

align=center|left|right

If the rule is shorter than the width of the window, this tag controls horizontal alignment of the rule. The default is center.

noshade

This displays the rule as a solid (non-shaded) bar.

size=number

Specifies the thickness of the rule in pixels.

width=number (pixels or percentage)

Specifies the length of the rule in pixels or as a percentage of the page width. By default, rules are the full width of the browser window.

Get HTML Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.