15. Lists

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

All lists are formed by a parent element that specifies what sort of list you want to create, and child elements that mark the items within the list. Here are the three list types, along with the elements they are composed of:

Ordered list: ol for the parent, li for each ...

Get HTML and CSS: Visual QuickStart Guide, Eighth 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.