HTML Encyclopaedia
General Information about lists
HTML supports three different ways of presenting
lists.
These are
All lists are indicated to by a matching pair of tags
-
<ul> .. </ul> for un-numbered lists
-
<ol> .. </ol> for numbered lists
-
<dl> .. </dl> for detailed lists
Within each list, list elements are identified by a distinctive tag
-
<li> for un-numbered and numbered lists
-
<dt> & <dd> for detailed lists
List can be nested forming sub-lists to an arbitrary depth with each
deeper level of nesting being indicated by further indentation.
Lists of different types can be nested.
- First item in a level 1 un-numbered list
- Second item in a level 1 un-numbered list
- First item in a nested numbered list
- Second item in a nested numberd list
- First item in a detailed list
- and here's all the inforamtion about the item
- Second item in a detailed list
- and here's all the information about the second item
- The first item in a nested un-numbered list
- and another
- and another
- Third item in a detailed list
- and all about it
- Third item in a nested numbered list
- Third item in a level 1 un-numbered lists
The obsolescent tags <menu> and <dir> can also be used to
present lists.
See also
<li>,
<dl>,
<ol> and
<ul>