15. Lists

In This Chapter

Creating Ordered and Unordered Lists

Choosing Your Markers

Choosing Where to Start List Numbering

Using Custom Markers

Controlling Where Markers Hang

Setting All List-Style Properties at Once

Styling Nested Lists

Creating Description Lists

HTML contains elements specifically for creating lists of items. You can create plain, numbered, or bulleted lists, as well as lists of descriptions. You can also nest one list (or more) inside another one.

All lists are formed by a principal element to specify what sort of list you want to create (ul for unordered list, ol for ordered list, and dl for description list, known as a definition list before HTML5) and secondary elements to specify what sort of list items you want to create ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh 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.