HTML lists are a fairly simple yet powerful way of structuring bits of information that belong together. We'll have a look at all 3 types of lists HTML has to offer: the unordered list, the ordered list and the definition list.
You can think of the unordered list as your typical shopping list where you have a collection of items that have no special order. The <ul>...</ul> tags mark the beginning and end of the list with <li>...</li> elements inside being the list items. By default the list style is vertical with bullets.
Ordered lists are numbered lists where the sequence matters. A top 10 list or a list of instructions are good examples. The HTML code is like the unordered list except for the enclosing tags <ol>...</ol>. By default the list style is vertical with Arabic numerals.
Unlike the previously mentioned list types, definition lists not only list a bunch of items but associate each item with a name. You can think of them as list of name/value pairs much like in a dictionary or glossary. The hosting terms glossary on this site is a good example of a definition list.
Definition lists start and end with <dl>...</dl> and each list item is made of a definition term <dt>...</dt> followed by its definition data <dd>...</dd>. By default the definition data is displayed below the definition term and slightly indent.