Unordered List Website Links For
List
 

Information About

Unordered List




An unordered list
    ..
is a HTML element for a list of items where each item is prefixed by a fixed symbol, or nothing.

A list-style-type implies the prefixes to be equal or changing, and overrides the distinction between ol and ul.

Examples:
decimal (default list-style-type for ol):


  1. Amsterdam
  2. Rotterdam
  3. The Hague



gives


  1. Amsterdam
  2. Rotterdam
  3. The Hague



LIST STYLE TYPES


Specifying a list-style-type:

lower-alpha:


  1. Amsterdam
  2. Rotterdam
  3. The Hague



gives


  1. Amsterdam
  2. Rotterdam
  3. The Hague


Similarly:

upper-alpha:

  1. Amsterdam
  2. Rotterdam
  3. The Hague

lower-roman:

  1. Amsterdam
  2. Rotterdam
  3. The Hague

upper-roman:

  1. Amsterdam
  2. Rotterdam
  3. The Hague

disc (default list-style-type for 1st-level ul):

  1. Amsterdam
  2. Rotterdam
  3. The Hague

circle (default list-style-type for 2nd-level ul):

  1. Amsterdam
  2. Rotterdam
  3. The Hague

square (default list-style-type for 3rd and higher level ul):

  1. Amsterdam
  2. Rotterdam
  3. The Hague

"none":

  1. Amsterdam
  2. Rotterdam
  3. The Hague



STARTING VALUE


A starting value (in decimal form) can be specified (naturally this has no effect if the prefix does not depend on the item's position in the list):



  1. Amsterdam
  2. Rotterdam
  3. The Hague



gives


  1. Amsterdam
  2. Rotterdam
  3. The Hague


Similarly for the different style types and an starting value of 2:

Syle-type:lower-alpha


  1. Amsterdam
  2. Rotterdam
  3. The Hague


Style-type:upper-alpha


  1. Amsterdam
  2. Rotterdam
  3. The Hague


Style-type:lower-roman


  1. Amsterdam
  2. Rotterdam
  3. The Hague


Style-type:upper-roman


  1. Amsterdam
  2. Rotterdam
  3. The Hague



COMPARISON WITH A TABLE

Apart from providing automatic numbering, the numbered list also aligns the contents of the items, comparable with using table syntax:


  1. Amsterdam
  2. Rotterdam
  3. The Hague


gives

  1. Amsterdam
  2. Rotterdam
  3. The Hague





gives

This non-automatic numbering has the advantage that if a text refers to the numbers, insertion or deletion of an item does not disturb the correspondence.


SEE ALSO

List (disambiguation)