<UL>...</UL>
Description
Create an unordered list of items, where unordered means the individual items
are not numbered, but have a bullet in front of them. If you want numbered
items use an ordered list.
The items in the list are identified with the LI
element.
DTD
<!ELEMENT UL - - (LI)+ -- unordered list --><!ATTLIST UL
%attrs; -- %coreattrs, %i18n, %events --
>
from the
HTML 4.0 DTD,
"Copyright ©
W3C,
(MIT,
INRIA,
Keio).
All Rights Reserved."
Attributes
Core attributes:
class
id
style
title
Internationalization attributes:
dir
lang
Events:
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
COMPACT
Show the list in a compact way, taking up less space.
TYPE
The default unordered list has a default progression of bullet types that
changes as you move through indented levels. From a solid disc, to a circle to
a square.
You can change this default using the TYPE attribute. Allowed values for TYPE
are CIRCLE, DISC, and SQUARE.
The WebTV interface renders type="circle"
as a triangle because a
hollow circle does not display well on TV (that is, the display flickers).
Examples
 |
A simple unordered list :
<UL>
<LI>The first item of the list.
<LI>The second item of the list.
</UL>
|
|
 |
A simple unordered list :
- The first item of the list.
- The second item of the list.
|
|
 |
Nested unordered lists with assigned types :
<UL type="square">
<LI>The first item of the list.
<LI>The second item of the list.
<UL type="disc">
<LI>The first item of the nested list.
<LI>The second item of the nested list.
</UL>
</UL>
|
|
 |
Nested unordered lists with assigned types :
- The first item of the list.
- The second item of the list.
- The first item of the nested list.
- The second item of the nested list.
|