Then there are the three types of lists.

The first is the Unordered List, where each List Item is indented from the right margin and marked off with a bullet.

The Unordered List

You start an Unordered List with the <UL> tag, which is a container tag and can take the attribute TYPE to define the type of bullet used.. TYPE can be DISC (as above, the default), SQUARE, or CIRCLE (unfilled circles). Each item in the list is contained within a <LI> tag, which is also a container tag and requires the closing tag. The list also requies the closing </UL>.

Second is the Ordered List. In an Ordered List each List Item is indented from the right margin and marked off with a number or letter. The opening tag for an Ordered List is <OL>, otherwise it is the same as for an Unordered List. The possible TYPE values for an Ordered List are "A", which will use capital letters, "a" which uses lowercase letters, "1" which uses numbers, "I" which uses capital Roman numerals, and "i" which uses lowercase Roman numerals. If you wish to begin numbering/lettering at a point other than the beginning, use the START attribute, which can have a value of any member of the TYPE you are using.

The Ordered List

  1. The First List Item
  2. The Second List Item
  3. And so on...
  4. And so forth...

Finally there is the Dictionary List.

A Dictionary List

The Dictionary Term
The Dictionary Definition
Another Dictionary Term
Another Dictionary Definition

A Dictionary List has two parts to each item, the Term and the Definition. The list opens with <DL>, which is a container tag and takes no attributes. Each term in the list begins with <DT>, for the term, which is a container tag and takes no attributes. Following that is the definition, <DD> which indents the contents from the right margin and is a container tag which takes no attributes.

All of these lists can contain other active HTML style elements.

Take a look at the source code for a better look at how each list is structured.



previous next contents