Supported by :   My Law Forms Ltd. - Deed polls and Tenancy Agreements

XHTML help: basics – unordered list, ordered list, definition list

In HTML there are several different types of lists. Mostly commonly you’ll use an unordered list. There are two other types of lists that you could use as well: the ordered list and the definition list. Of course an ordered list can be used for items with priorities, or to show a specific order of the items. Both the unordered and ordered lists use similar markup:

<li>List item #1</li>
<li>List item #2</li>

<li>List item #1</li>
<li>List item #2</li>

You can see the only difference is that the unordered list uses the ul element and the unordered list uses the ol element.

An unordered list appears like this :

  • List item #1
  • List item #2

Whilst an ordered list appears like this :

  1. List item #1
  2. List item #2

A definition list is a special list that is intended for a list of terms and definitions. It can also be used for items that have a direct relationship with one another such as the make and model of a car.


Use the dl element to start a definition list. A dt element is a definition term and you can have as many of them as you need; they don’t necessarily have to have a corresponding definition description, or dd tag. You can also have as many definition descriptions as you’d like for each given term.

This entry was posted on Tuesday, May 1st, 2007 at 1:18 pm and is filed under HTML help, XHTML tips. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.