List tags in HTML cover ordered lists, unordered lists and definition lists: Ordered list (OL): Mark sequential list items with numbers or letters; Unordered list (UL): Use dots or Squares mark unordered list items; definition list (DL): a paired list of defined terms and descriptions.
List tags in HTML
HTML provides a variety of list tags for creating ordered lists , unordered list and definition list.
Ordered list (OL)
: Ordered list start tag
: list item (element)
: ordered list end tag
Unordered list (UL)
: Unordered list start tag
: List item (element)
: End tag of unordered list
Definition list (DL)
: Define list start tag
: Define term (subtitle)
: Definition description (text)
: Definition list end tag
Attributes
Ordered list (OL)
: Specify the starting sequence number of the list
: Specify the list item tag type (numbers, Roman numerals, letters, etc.)
Unordered list (UL)
: Specify the list item mark type (dot, square, dash, etc.)
Definition list (DL)
Example
Ordered list:
- 项目 5
- 项目 6
- 项目 7
Unordered list:
- 项目 1
- 项目 2
- 项目 3
Definition list:
- HTML
- 超文本标记语言
- CSS
- 层叠样式表
The above is the detailed content of What are the list tags in html. For more information, please follow other related articles on the PHP Chinese website!