O'Reilly logo

Getting StartED with CSS by David Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. How Do I Style Lists and Navigation Menus?

HTML provides tags for three different types of lists: unordered (<ul>), ordered (<ol>), and definition (<dl>). Unordered lists are normally displayed as a series of bullet points; ordered lists are numbered; and definition lists are presented as a word or phrase followed its definition, indented on the following line. Figure 8-1 shows examples of all three (the code is in lists_01.html in the download files for this chapter).

The three types of lists supported in HTML

Figure 8.1. The three types of lists supported in HTML

CSS regards the components of definition lists simply as block-level elements, so it has no special properties to deal ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required