Web Host Directory Web Host Directory

USA

Service ChannelsWeb Host Directory

Web Host Directory

Hosting Guides

HTML Explained

Lists


Lists may be ordered or unordered:


Ordered Lists


Ordered lists use <OL> to open the list and </OL> to close the list.
Each list element uses <LI> at the start and </LI> at the end.
For example:


<OL>

<LI> Item 1 in the list </LI>
<LI> Item 2 in the list </LI>

</OL>

  1. Item 1 in the list
  2. Item 2 in the list

Lists don't have to be numbered. They can be listed by CAPITAL letters, lower case letters, large or small Roman Numerals, and you can start at any number, letter, or Roman Numeral.

  1. <OL TYPE=A> causes the list to be lettered in
  2. CAPITAL LETTERS
  1. <OL TYPE=a> causes the list to be lettered in
  2. lower case letters
  1. <OL TYPE=I> causes the list to be numbered with
  2. large Roman Numerals
  1. <OL TYPE=i> causes the list to be numbered with
  2. small Roman Numerals
  1. <OL START=n> where n is the starting number, causes the list to be numbered from any number, letter, or numeral you wish.
  2. Translate letters and numerals into their corresponding numbers, i.e. E=5, b=2, III=3, etc.

Unordered Lists


Unordered lists use <UL> to open the list and </UL> to close the list.
As with ordered lists, each list element uses <LI> at the start and </LI> at the end.

  • <UL> shows the default bullet in an unordered list - a disc, equivalent to <UL TYPE=disc>
  • <UL TYPE=square> shows the bullet as a square.
  • <UL TYPE=circle> shows the bullet as a circle.

Definition Lists


Definition lists consist of two parts, the term and the definition. They are particularly useful for defining lists of terms, or glossaries. <DL> is used to open the list, and </DL> closes it.


The term is defined between <DT> and </DT>.
The definition is defined between <DD> and </DD>.


For example:


<DL>

<DT>term 1</DT><DD>definition 1</DD>
<DT>term 2</DT><DD>definition 2</DD>

</DL>


This produces the following:


term 1
definition 1
term 2
definition 2

Lists can also be nested:


<OL>

<LI>one list</LI>

<OL TYPE=A>

<LI>nested inside another</LI>

<UL>

<LI>and again inside another</LI>

</UL>

</OL>

</OL>


This produces the following:

  1. one list
    1. nested inside another
      • and again inside another

Advertisements


Popular Countries




Choose a letter