Horizontal Rule
<HR> tag attributes
Thickness
A horizontal rule 8 pixels thick is tagged like this:
<hr size=8>
and appears like this:
Width
You can specify the width of a horizontal rule either in pixels or
as a percentage of the page width. The default width of the rule is
the page width, resizing as the page is resized.
If you specify a percentage, the rule will resize whenever the page
is resized. If you specify a width in pixels, the rule will remain that
width, even if the page width is changed.
A line that is half the page width is tagged like this:
<hr width=50%>
and appears like this:
A line 50 pixels long is tagged like this:
<hr width=50>
and appears like this:
Alignment
A rule is centered by default, but you can change this with the alignment
attribute.
The tagging looks like this:
<hr width=50% align=right>
and appears like this:
Last modified
July 20, 2004
by cawalker
|