A
n important HTML tag type is the List. HTML supports three types<OPEN LIST>
<LH> Optional list header </LH>
<LI> Item in the list </LI>
...
<LI> Item in the list </LI>
<CLOSE LIST>
Ordered Lists use <OL> to open the list and </OL> to close the list.
To start the numbering at a specific place, add SEQNUM=num to the
where num is the number to start the numbering with.
Adding CONTINUE to the <OL ... > tag will pick up the numbering of this list
where the last list left off.
So, a list starting at 49 would look like this:
<OL SEQNUM=49>
...
</OL>
Unordered Lists use <UL> </UL> to open and close the list.
The unordered list can be modified by adding tags to the opening
Adding PLAIN will create a list with no bullets. Adding WRAP= will make your list
"wrap" into columns. WRAP=vert will make the list start a new column after
reaching
the bottom of the page. WRAP=horiz will make the list divide into as many columns
as the page has room for. To use some other image instead of the standard bullet, include
SRC="picture", where picture is a link to the image you want to use. (See the
lesson: Links)
An unordered list with no bullets that wraps vertically would look like this:
<UL PLAIN WRAP=vert>
...
</UL>
NOTE: Here's a neat trick. If you want
something indented, you can use and unordered list.
Just put your text in an unordered list with no list items.
Example:
<UL>
</UL>
Definition lists are two-part lists, useful for things like glossaries or defining lists of terms. <DL> </DL> is used to open and close the list. The list items have two parts: the term and the definition. The definition term is enclosed in <DT> </DT> and should precede the definition definition. The definition definition is enclosed in <DD> </DD>. A list header can also be added as with the other list types. So, the whole thing looks like:
<DL>
<LH> list header <DL>
<DT> term </DT> <DD> definition </DD>
...
<DT> term </DT> <DD> definition </DD>
</DL>
NOTE: The definition term and the
definition definition do NOT have to
be on the same line like in the example.
One useful feature of lists is that they can be nested, i.e. one
lists is a List Item of another list, like this:
<UL>
<LI>You can have one list...</LI>
<OL>
<LI>Inside of another list...</LI>
<OL TYPE=A>
<LI>Inside of another!</LI>
</OL>
</OL>
</UL>
Which looks like this:
Tables are 2-dimensional lists. They are coded similarly to
definition lists.
They have an implicit <BR> at the beginning and end. The format is:
<TABLE>
<TR> <TD> Table Entry </TD> ... <TD> Table Entry </TD>
</TR>
...
<TR> <TD> Table Entry </TD> ... <TD> Table Entry </TD>
</TR>
</TABLE>
Each row is encapsulated in <TR> </TR>. Within the row
are cells, enclosed in <TD> </TD>.
The whole table is opened and closed with <TABLE> </TABLE>. There can be as
many rows
and columns as you want and as will fit on the screen. The browser will autoformat the
rows,vertically centering cell contents if necessary.
If you want a cell to span more than one column, enclose it in <TD COLSPAN=##>
</TD>, where ## id the number of columns to span. Similarly,
</TD> will cause the cell to span ## rows. A border can the placed around all the
cells by
using
thick the border should be.
<table border="1"><tr><td>
Tables</td>
<td>can</td>
<td>contain</td></tr>
<tr><td>any</td>
<td>amount</td>
<td>of</td></tr>
<tr><td colspan="2">INFORMATION</td>
<td rowspan="2">!!!</td></tr>
<tr><td colspan="2">You Want</td></tr></table>
Tables | can | contain |
any | amount | of |
INFORMATION | !!! | |
You Want |
Centering can be accomplished with the <CENTER> </CENTER> tags,
<CENTER>Like this!</CENTER>
NOTE: Structures such as
centering, tables, lists and headings sometimes
ignore formatting applied outside of the structure's limits. So,
<B><CENTER> text </CENTER></B> may not make "text" bold.
<CENTER><B> text</B> </CENTER> may be needed in this case.
**FREE** INCREASE YOUR HITS AND GET 20MB'S OF WEBSPACE! **FREE** |