<HR>
The <HR> tag stands for 'Horizontal Rule'. It
is used to draw a quick line across the page.
The tag does not have a closing tag like the
others so far. It does accept attributes or
'elements' to adjust the width and
position of the line. If I just use the the tag
by typing <HR> I will get this;
If I want the line to only run
part way across the page I'll add the width
element
<HR WIDTH=300> to get this:
If I want the line on the left side of the page I
can either close the center tag or add the 'align
element to the tag like this;
<HR WIDTH=300 ALIGN="LEFT"> to
get this:
Or to move it to the right I'll change the
'align' element to 'right' like this;
<HR WIDTH=300 ALIGN="RIGHT"> to
get this:
<P> and <BR>
These are two more common tags that do not have
closing tags. the <P> is for Paragraph and
the <BR> is for a line Break. When a <BR>
is placed in text it causes the next word after
it to start a new line on the page. The <P>
does the same thing except it adds a blank line
before the next word starts. A <P> works just
two <BR>'s. <BR> can be stacked
together to add more blank lines while only one
<P> will be read by the browser for a given
break.
<P> <P> <P> has the same effect as one
<P> while <BR> <BR> <BR>
causes a line break plus two blank lines.
<SPACER>
For larger spaces use the <SPACER> tag. This
is another tag that needs no closing tag. The
SPACER uses a TYPE and SIZE element and either
horizontal or vertical values (required). The
value of the SIZE element determines the size of
the spacer and is measured in 'pixels'. 'Pixels'
are the tiny dots that make up the picture on
your screen.
This is how a vertical SPACER is written and this
is what it does:
<SPACER TYPE="VERTICAL" SIZE=100>
Notice the space above this line, that is the
spacer with a SIZE value of 100 pixels. To make
the spacer horizontal write it like this:
<SPACER TYPE="HORIZONTAL" SIZE=100>
If I put the spacer here that is what happens.
This is more useful for tables and image spacing
than text.
Now, let's get ready to write some text on the
page. Since I don't want my text butted right up
under the page heading I will add a blank space,
and a horizintal line, then a larger space before
I start the text. The codes for this are:
<P> <HR WIDTH=400>
<SPACER
TYPE=VERTICAL SIZE=70>
Added to our codes it will look like this: