List Elements
Technically, XHTML lists are a form of block-level formatting, but because lists are such a useful way of presenting content, the list elements merit their own section in the chapter.
Using the elements in this section, you can create the following types of lists:
Definition lists
Ordered (numbered) lists
Unordered (bulleted) lists
Ordered and unordered lists use the list item element, <li>, so this element is covered first, followed by the elements you use to create each type of list.
<li>
Type:
Container
Function:
Denotes an item in a list.
Syntax:
<li> ... list item goes here ... </li>
Attributes:
None.
Note
The attributes previously used with the HTML <LI> tag—COMPACT, TYPE, and START—cannot be used with the XHTML <li> tag ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.