Lists group related items. HTML has three kinds: unordered (bullets), ordered (numbers), and description lists (term–definition pairs).
The three list types
<ul> <!-- unordered: bullets --><li>First item</li><li>Second item</li></ul><ol> <!-- ordered: numbered --><li>Step one</li><li>Step two</li></ol><dl> <!-- description list --><dt>HTML</dt><dd>The markup language of the web.</dd></dl>
Key takeaways
- 01<ul> makes bulleted lists; <ol> makes numbered lists; each item is an <li>.
- 02<dl> holds term/definition pairs (<dt> and <dd>).
- 03Use <ol> only when order matters; otherwise <ul>.
- 04Lists nest for sub-items and navigation menus.
