The Web Design Group

ul - Unordered List

Syntax <ul>...</ul>
Attribute Specifications
  • type=[ "disc" | "square" | "circle" ] (bullet style)
  • compact="compact" (compact display)
  • common attributes
Contents One or more li elements
Contained in applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noframes, noscript, object, td, th

The ul element defines an unordered list. The element contains one or more li elements that define the actual items of the list.

Unlike with an ordered list (ol), the items of an unordered list have no sequence. In theory, users should be able to change the order of items in an unordered list (e.g., alphabetizing them).

Visual browsers typically render ul with a bullet preceding each list item, but authors can suggest various presentations using style sheets. The list-style property of Cascading Style Sheets allows authors to suppress bullets, use images as list item markers, and more.

The deprecated type attribute of ul suggests the bullet style on visual browsers. Possible values are as follows:

The bullet style on an individual list item can be suggested using the type attribute of li. The list-style-type property of CSS provides greater flexibility in suggesting bullet styles.

The deprecated compact attribute suggests that visual browsers render the list compactly, perhaps with reduced spacing between items. This attribute is not well supported among browsers.

More Information