http://fishcaro.crosswinds.net/day_8_lists.htm
Today's lessons has TWO index cards (four sides).
INDEX CARDS #8:
INTRODUCTION TO LISTS (8a)What types of lists are available in HTML? There are three types of lists:
What is an UNORDERED (bulleted) LIST? An unordered list is used for a collection of related items, where the order that the items are listed is unimportant. The required structure is illustrated below: "UL" stands for "Unordered List" and "LI" stands for "List Item" (or "LIst"). Typically, list items are displayed indented, with a bullet preceding each item. (See the example in the previous question.) <UL> <LI> Each individual item gets its own "LI" tag.</LI> <LI> Don't omit the closing tag!</LI> </UL> |
CHANGING THE BULLET SHAPE (8b)Can I change the bullet shape? If you don't specify the bullet shape, then it's determined by the browser. The "disc" is the usual default: that is, if you don't specify a different shape, then you'll get the disc. You can also get a "square" or a "circle":
TYPE attribute within the <UL> tag to change the shape for ALL the list items:
<UL TYPE=square> TYPE attribute within a <LI> tag to change the shape
for a particular list item:
<LI TYPE=circle> |
ORDERED LISTS (8c)Can I change the "numbering" scheme? Use the TYPE attribute
to change the "numbering" scheme: <OL TYPE=?>
(I've used an ordered list below.)
|
DEFINITION LISTS (8d)
|
Printable version of Index Card 8a
Printable version of Index Card 8b
Printable version of Index Card 8c
Printable version of Index Card 8d
WORKSHEET #8:
ASSIGNMENT #8:
test_list.htm
that looks like this:
<UL> <LI> Item #1</LI> <LI> Item #2</LI> <LI> Item #3</LI> </UL>View the results. Then, do the following:
test_list.htm
file to look like this:
<DL> <DT> ASCII files</DT> <DD> Files that are comprised of alphanumeric characters. Some FTP programs refer to ASCII files as "text" files.</DD> <DT> FTP</DT> <DD> File Transfer Protocol; a protocol for moving files over the Internet from one computer to another. FTP is a client/server system: one machine must be running an FTP server, the other an FTP client.</DD> </DL>Then, do the following:
<DL COMPACT>