Chapter 17. Lists

by Chris Mills

The purpose of HTML lists is to group related pieces of information together, so they are clearly associated with each other and easy to read—think about shopping lists, or steps in a recipe, or a list of upcoming concerts your favourite band is playing.

In this chapter we will cover the different HTML list types available and when and how you should use them, go through list styling best practices, and then look at some slightly more advanced examples. Figure 17.1 shows an example of a typical HTML list being used to display some content items.

Figure 17.1. A typical HTML list.

Image

In this chapter you have the opportunity ...

Get InterACT with Web Standards: A holistic approach to web design 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.