Lists

HTML supports various types of list structure. In all cases, an element that expresses the type of list is used to enclose a number of others, each representing one item in the list.

The most basic type of list is the Ul (unordered list):

					<UL>
...
</UL>
				

An unordered list is used when the items do not form a logical sequence or series of steps. It contains a number of Li (list item) elements. Each of these contains text, and is automatically preceded by a bullet, dash or other symbol:

<UL>
<LI>First Item</LI>
					<LI>Second Item</LI>
					<LI>Third Item</LI>
</UL>
  • First Item

  • Second Item

  • Third Item

The deprecated Dir (directory list) element is intended to hold directory listings, which are very short items that may be formatted in columns (as in ...

Get XSL companion, The 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.