Skip to main content
Albero Academy

Lists

Ordered, unordered and description lists.

Text & Links7 min

Lists group related items. HTML has three kinds: unordered (bullets), ordered (numbers), and description lists (term–definition pairs).

The three list types

ul, ol, dl
<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

  1. 01<ul> makes bulleted lists; <ol> makes numbered lists; each item is an <li>.
  2. 02<dl> holds term/definition pairs (<dt> and <dd>).
  3. 03Use <ol> only when order matters; otherwise <ul>.
  4. 04Lists nest for sub-items and navigation menus.

Finished this chapter?

Mark it complete to track your progress through HTML.