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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.