Name

ul — <ul> . . . </ul>

Defines an unordered list, in which list items (li ) have no sequence. By default, browsers insert bullets before each item in an unordered list. Lists may be formatted in any fashion (including as horizontal navigation elements) using Cascading Style Sheet properties.

Attributes

Core, Internationalization, Events

compact="compact"

Deprecated. Displays the list block as small as possible. Few browsers support this attribute.

type="disc|circle|square"

Deprecated. Defines the shape of the bullets used for each list item.

Example

<ul>
    <li>About</li>
    <li>Portfolio</li>
    <li>Blog</li>
    <li>Contact</li>
</ul>

Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.