HTML Lists
HTML lists allow web developers to group a set of related items in lists.
Example
An unordered HTML list:
Item
Item
Item
Item
An ordered HTML list:
First item
Second item
Third item
Fourth item
来试试吧 »
Unordered HTML List
An unordered list starts with the
- tag. Each list item starts with the
- tag.
The list items will be marked with bullets (small black circles) by default:
Example
- Coffee
- Tea
- Milk
Ordered HTML List
An ordered list starts with the
- tag. Each list item starts with the
- tag.
The list items will be marked with numbers by default:
Example
- Coffee
- Tea
- Milk
来试试吧 »
HTML Description Lists
HTML also supports description lists.
A description list is a list of terms, with a description of each term.
The
- tag defines the term (name), and the
tag describes each term:
Example
- Coffee
- - black hot drink Milk
- - white cold drink
来试试吧 »
HTML List Tags
Tag
Description
Defines an unordered list
Defines an ordered list
Defines a list item
Defines a description list
Defines a term in a description list
Describes the term in a description list
For a complete list of all available HTML tags, visit our HTML Tag 参考.