<hr> Syntax
Syntax Diagram for <hr>
Open |
Parameter |
= |
Value |
Close |
<hr |
width |
= |
pixels |
> |
percent% |
size |
= |
pixels |
align |
= |
left |
center |
right |
noshade |
clear |
= |
left |
right |
all |
<hr> Description
"<hr>" stands for "horizontal rule;" it creates a horizontal
line that visually delimits the section above from the section beneath.
- width
- Specifies the horizontal extent of the rule. The width can be expressed
as a percentage of its enclosing window or frame, or as an absolute width,
measured in pixels.
- size
- Specifies the vertical extent--the "thickness"--of the rule. Expressed in
pixels. Maximum value is 100.
- align
- Specifies the alignment of the rule. Note that this has no effect unless
the size parameter is also specified, and specifies a width that
is less than the current width of the containing window/frame.
- noshade
- Specifies that the rule is not to have its default 3D appearance (with
highlights on the bottom and right and shadows on the top and left, making
the rule appear to be dented into the page), but instead it will be a
black rectangle.
- clear
- Specifies that the rule should "clear" (should be placed below the bottom
of) any graphics around which text wraps.
"clear=left" directs the browser to go far enough
down, before drawing the rule, to be below any images with
"align=left" specifiers. Without the
"clear=left", the rule would merely wrap around the
graphic like text does.
<hr> Examples
"<hr>" yields:
"<hr size=10>" yields:
"<hr width=100>" yields:
"<hr width=20%>" yields:
"<hr width=20% align=left>" yields:
"<hr width=20% align=center>" yields:
"<hr width=20% align=right>" yields:
"<hr size=5 noshade>" yields:
"<hr size=100 width=10 noshade>" yields:
Horizontal Bar Chart
Tom |
|
Dick |
|
Harry |
|
Vertical Bar Chart
|
|
|
Tom |
Dick |
Harry |
Last Modified: