Unordered Lists
Unordered lists are used for collections of related items that appear in no particular order. Most lists fall into this category. Just about any list of examples, components, thoughts, or options should be marked up as an unordered list. Most notably, unordered lists are the element of choice for navigational options. Unordered lists for navigation are discussed later in this section.
In (X)HTML, unordered lists are denoted with the ul element. The content of a ul is limited to one or more list items
(li). List items may contain either
block-level or inline elements, or both. Unordered lists and their list items are block elements, so each will display
starting on a new line.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access