HTML Unordered Lists
An unordered list starts with the
- tag. Each list item starts with the
- tag.
The list items are marked with bullets (typically small black circles).
- Coffee
- Milk
How the HTML code above looks in a browser:
- Coffee
- Milk
HTML Ordered Lists
An ordered list starts with the
- tag. Each list item starts with the
- tag.
The list items are marked with numbers.
- Coffee
- Milk
How the HTML code above looks in a browser:
- Coffee
- Milk
HTML Definition Lists
A definition list is a list of items, with a description of each item.
The
- tag defines a definition list.
The
- tag is used in conjunction with
- (defines the item in the list) and
- (describes the item in the list):
- Coffee
- - black hot drink
- Milk
- - white cold drink
How the HTML code above looks in a browser:
- Coffee
- - black hot drink
- Milk
- - white cold drink