next up previous contents
Next: Making it all Up: The World Wide Previous: Headings and Typefaces

Lists of things

Lists of things are pretty useful in ordinary text, but in HTML, where you'll often have lists of links to other places, they're even more useful. However WWW servers just consisting of lists are pretty boring too, and with some imagination, you'll find more interesting ways to present many things.

The simplest list is the bullet or unordered list, which is denoted by <UL>, and the list items in it are denoted using <LI>. An example is:

    <LI>Military Intelligence
    <LI>Plastic Glasses
    <LI>Moral Majority
This would be displayed as:
Another form of list is the numbered or ordered list denoted by <OL>. Ordered lists have the same syntax as unordered lists except that OL replaces UL in the list delimiters:
    <LI>Business ethics
This gets displayed as:
  1. Business ethics
  2. Chilli

A more complex type of list is the definition list, denoted by <DL>. definition terms are denoted using <DT> and actual definition data is denoted using <DD>, so a typical list may be:

    Population Statistics:
    <DD>population 3 million
    <DD>population 5 million
    <PP>population too many
which would be presented as:
  Popu¯ lati¯ on Statistics:


population 3 million


population 5 million


population too many

If you wish to have several paragraphs of definition data associated with one definition term, simply use several <DD> entries.

Note that although the <DL> list must be finished with a </DL>, each <DT> or <DD> list item is simply ended by the next definition.

Jon Crowcroft
Wed May 10 11:46:29 BST 1995