Lists

HTML has two main kinds of lists: unordered (bullet points) and ordered (numbered). Both hold a series of list items.

Unordered lists

Try it yourself
Result

Ordered lists

Use <ol> instead of <ul> when the order actually matters — the browser numbers the items automatically.

Try it yourself
Result

Nesting lists

A list item can contain another whole list — useful for sub-points. Try adding a third nested item:

Try it yourself
Result