W3 3.2y
4.0y
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y

<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

W3 3.2y
4.0d
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
COMPACT
Show the list in a compact way, taking up less space.
W3 3.2y
4.0d
NS 3.0y
4.0y
IE 3.0n
4.0y
TV 1.2y
2.1y
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

Source
A simple unordered list :
<UL>
<LI>The first item of the list.
<LI>The second item of the list.
</UL>
 
Result
A simple unordered list :
  • The first item of the list.
  • The second item of the list.
 
Source
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>
 
Result
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.
Statistics