Lists
Lists allow important data/information to be presented in a clear and easy-to-read manner. HTML allows three main types.
<UL>, <OL> and <DL> are the tags that define the type of list. The entries in bullet and numbered lists use the tag <LI>, while entries in a definition list use the tag <DT>.
|
|
For example,<UL> <LI>first list item <LI>second list item <LI>third list item </UL> |
... would be displayed as,
|
<OL> <LI>first list item <LI>second list item <LI>third list item </OL> |
|
<DL> <DT>first list item <DT>second list item <DT>third list item </DL> |
|
In the examples below, lists are nested within lists and different types of lists have been created.
| |
For example,<OL TYPE=1> <LI>first list item <OL TYPE=i> <LI>first nested-list item <LI>second nested-list item </OL> <LI>second list item <OL TYPE=I> <LI>third nested-list item <LI>forth nested-list item </OL> <LI>third list item <OL TYPE=a> <LI>fifth nested-list item <LI>sixth nested-list item </OL> </OL> <LI>third list item <OL TYPE=A> <LI>seventh nested-list item <LI>eigth nested-list item </OL> </OL> |
... would be displayed as,
|
<UL TYPE=DISC> <LI>first list item <UL TYPE=CIRCLE> <LI>first nested-list item <LI>second nested-list item </UL> <LI>second list item <UL TYPE=SQUARE> <LI>third nested-list item <LI>forth nested-list item </UL> </UL> |
|
END OF TUTORIAL
|
Go back to Contents | Back|Next |