Home Previous TOC Next Bookshelf

8. Lists

HTML has three types of lists:

  1. Ordered list is specified by the <ol> tag. The listed items are given in LI elements.
  2. Unordered list is specified by the <ul> tag. The listed items are also given in LI elements.
  3. Description list is signified by the <dl> tag. The term to be described is given in the DT element and its description is given in the DD element. The description list is commonly used in glossary.

Examples:

Ordered List:

  1. First item
  2. Second item
  3. Third item

Unordered List:

  • First item
  • Second item
  • Third item

Description List:

Term 1
Description of Term 1
Term 2
Description of Term 2