Chapter 6. USING LISTS

Add a Bulleted List to Your Page

Most Web sites contain lists. Whether you are an e-commerce site displaying your products, or a non-profit site showing your members, you need lists. All navigation on the Web can be argued to be a list; after all, navigation is really nothing more than a list of links to the other pages on the site.

Perhaps the most common type of list on Web sites is an unordered, or bulleted, list. Any list that contains items that do not need to appear in a particular order will be an unordered list. The list is defined via the <ul> tag. Within the <ul> tag block, each item is denoted by a list item element: <li>. Here is the basic setup of an unordered list:

<ul> <li>List Item</li> <li>List Item</li> </ul> ...

Get HTML, XHTML, and CSS: Your visual blueprint™ for designing effective Web pages 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.