Chapter 4. Lists

XHTML supports many different block text elements due to its roots as a text document description and formatting language. One of the more often used blocks is lists, of which XHTML supports three different varieties:

  • Ordered lists—Lists whose elements must appear in a certain order. Such lists usually have their items prefixed with a number or letter.

  • Unordered lists—Lists whose elements can appear in any order, usually referred to as bulleted or laundry-style lists. Such lists usually have their items prefixed with a bullet or other graphic symbol.

  • Definition lists—Lists that contain two pieces of information—a term and a definition of said term—for each list element.

This chapter covers all three lists, their syntax, and various options that can be used to customize their appearance.

This chapter introduces several Cascading Style Sheet concepts. For more information about Cascading Style Sheets, see Part II of this book.

Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP 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.