http://fishcaro.crosswinds.net/day_33_horizontal_rules.htm
You will need 2 index cards (4 sides) for this lesson.
INDEX CARD #33:
HORIZONTAL RULES (33a)What are horizontal rules used for? Horizontal rules are most often used as simple dividers, to break up large amounts of text into manageable chunks. What is the basic structure of a horizontal rule? You can control how long (wide)
the rule is, as well as its height (thickness), shading, and alignment on the page:
|
THE WIDTH ATTRIBUTE (33b)
|
THE SIZE and NOSHADE ATTRIBUTES (33c)<HR> (no size specification) produces a very thin rule:
<HR SIZE="5"> produces a 5-pixel-high rule:
<HR SIZE="10"> produces a 10-pixel-high rule:
You can make the three-dimensional shading effect disappear, and instead display a solid line, by using the optional NOSHADE attribute:
<HR SIZE="10" NOSHADE> produces a 10-pixel-high solid rule:
Of course, effects can be combined. It doesn't matter what order you list the attributes. The code <HR SIZE="10" WIDTH="25%" NOSHADE> produces a 10-pixel-high
solid rule that takes up 25% of the available width:
|
THE ALIGN ATTRIBUTE (33d)If you don't specify an alignment, then it will be centered: <HR WIDTH="50%"> produces a centered rule:
You can make the rule begin at the left (i.e., "left-justify" or "left-align"):
You can make the rule flush with the right margin (i.e., "right-justify" or "right-align"):
A final note: a common trick is to make the width and size the same value, to get a little embossed (or solid) square. (The ones below are 10×10.) |
Printable version of Index Card 33a
Printable version of Index Card 33b
Printable version of Index Card 33c
Printable version of Index Card 33d
WORKSHEET #33:
ASSIGNMENT #33: