Saber2pr's Blog


There are three kinds of lists: ordered list ol, unordered list ul, and custom list dl.

Application scenario

List display. A series of content that conforms to specific rules can be implemented using a list. (similar to arrays)

Common in: user list, product list, search results list, etc.

Unordered list ul

ul > li structure, internal list unordered number.


Ordered list ol

ol > li structure, the sequence number is automatically added to the internal list. Ol common properties:

  1. start: serial number starting value
  2. Type: serial number type (Arabic numeral, Roman, English abc)

Custom list dl

dl > dd structure, and dt represents the title of dd.