HTML supports unnumbered, numbered, and definition lists. You can nest lists too (put one kind of list in another kind), but use this sparingly because too many nested items can get difficult to follow.


Unnumbered Lists


To Make an Unnumbered, Bulleted List


1. Start with an opening list tag <UL>
2. Enter the <LI> (list Item) tag followed by the individual item, no closing </LI> tag is needed.
3. End the entire list with a closing list </UL>


Below is a sample three-item list:


<UL>
<LI> apples
<LI> bananas
<LI> grapefruit
</UL>

The output looks like this:

· apples
· bananas
· grapefruit

The <LI> list items can contain multiple paragraphs. Indicate the paragraphs with the <P> tags.

Numbered Lists

A numbered list (also called an ordered list, from which the tag name derives) is identical to an unnumbered list, except it uses <OL>. The items are tagged using the same <LI> tag.

An Example follows:

<OL>
<LI> oranges
<LI> peaches
<LI> grapes
</OL>


The output looks like this:

1. oranges
2. peaches
3. grapes

Definition Lists

A definition list (coded as <DL>) usually consists of alternating a definition term (coded as <DT>) and a definition (coded as <DD>). Web browsers generally format the definition on a new line and indent it.

An example of a definition list:

<DL>
<DT>Learning Centre
<DD>Learning Centre has a site on the World Wide Web devoted to learning.</DL>

The output looks like this:

          Learning Centre
          Learning Centre is a site on the World Wide Web devoted to learning.

 

© Copyright 2002 Carnegie Webhead's