Lesson 3 - Graphics
First, before we get to graphics, let's discuss a few more tags used for formatting.
A horizontal spacer inserts blank space in a horizontal line.
The TYPE attribute can also be "vertical". Horizontal is useful for
simulating indents. Vertical would be used to insert vertical space between
paragraphs like..... SPACERS can also be used within a sentence like A block type spacer has attributes of WIDTH and HEIGHT. The values
of these attributes is the desired width and height of the spacer in pixels.
An ALIGN attribute can also be used with values of LEFT, RIGHT, TOP, or BOTTOM.
The SPACER tag is not closed. It would be used like this: Notice how the text wraps around the spacer. Remember that Internet
Explorer ignores the spacer tag. The text would look normal in IE. The SPACER
can be very useful when trying to position elements on your webpage.
Instead of using several non-breaking spaces, try using the PRE tag, the SPACER
tag, or pixel shims. To move on to graphics, click on the duck
<SPACER TYPE="block" WIDTH="45"
HEIGHT="40" ALIGN="left"> This is text that is wrapping
<BR>around the SPACER.
<BR>The SPACER is left aligned and 45 pixels
wide
<BR>and 40 pixels high.
would display:
around the SPACER.
The SPACER is left aligned and 45 pixels wide
and 40 pixels high.
COLUMNS
<MULTICOL COLS="3" GUTTER="20" WIDTH="90%">Enter
your text here.</MULTICOL>
The GUTTER and WIDTH tags are optional. If not specified, the defaults are set
at a GUTTER of 10 pixels and the WIDTH is set to 100%. The MULTICOL tag must be
closed. MULTICOL is ignored by IE.
NON-BREAKING SPACE
If none of the previously learned formatting tags seem to work to place your text
or graphics in the right position, you can always use the non-breaking space.
It allows your browser to recognize more than one space in a row. The code for
a non-breaking space is .
EXTRA SPACE
would display:
EXTRA SPACE
BLOCKQUOTE
The <BLOCKQUOTE> tag is used to quote long passages within your
webpage.
<BLOCKQUOTE>Quoted text here.</BLOCKQUOTE>
This tag indents both the left and right sides of the text as seen in
this paragraph. Be sure to close with the </BLOCKQUOTE> tag. Additional
formatting tags can be used with in the blockquote. There are no additional
attributes to this tag.
NO BREAK
If for some reason you do not want your browser to automatically wrap text, enclose
it within the <NOBR> and the </NOBR> tags. If the text goes beyond
the right edge of the browser window, then the viewer must use a scroll bar to
view it. You can also include optional breaks with the <WBR> tag. If the
<WBR> tag is found in text that would be beyond the normal browser window,
the browser will insert a break and continue the text on the next line. If the
<WBR> is found in text within the normal browser window, it is ignored.
Although Netscape and IE both recognize the <NOBR> tags, only Netscape recognizes
the <WBR> tag, which is not closed. By the way, I have no idea what the
W in WBR stands for, do you?
.