Name
ul — HTML 4.01 | HTML5
Synopsis
<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.
Start/End Tags
Required/Required
Attributes
Core, Internationalization, Events, HTML5 Global Attributes
compact="compact"
Deprecated. Not in HTML5. Displays the list block as small as possible. Few browsers support this attribute.
type="disc|circle|square"
Deprecated. Not in HTML5. 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 & XHTML Pocket Reference, 4th 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.