HTML supports ordered, unordered, and defined lists:

11.15.1. HTML list

Ordered list

  1. First list item

  2. Second list item

  3. Third list item

Unordered list

  • List item

  • List item

  • List item

HTML unordered list

An unordered list is a list of items marked with bold dots (typical small black circles).

Unordered list usage

    label

    <ul>
    <li>Coffeeli>
    <li>Milkli>
    ul>
    

    The browser displays as follows:

    • Coffee

    • Milk

HTML ordered list

Similarly, an ordered list is a list of items, which are marked with numbers. The ordered list begins with

    label. Each list item starts with
  1. label.

    List items are marked with numbers.

    <ol>
    <li>Coffeeli>
    <li>Milkli>
    ol>
    

    The browser displays as follows:

    1. Coffee

    2. Milk

HTML Custom list

A custom list is not just a list of items, but a combination of projects and their comments.

Customize the list to

label begins. Each custom list item is specified by
start. Each custom list item is defined with
start.

<dl>
<dt>Coffeedt>
<dd>- black hot drinkdd>
<dt>Milkdt>
<dd>- white cold drinkdd>
dl>

The browser displays as follows:

Coffee
  • Black hot drink

Milk
  • White cold drink

Precautions-useful Tip

Tip: paragraphs, newline characters, pictures, links, and other lists can be used inside list items.

HTML list label

Label

Description

< ol >

Define an ordered list

< ul >

Define an unordered list

< li >

Define list items

< dl >

Definition list

< dt >

Custom list item

< dd >

Define the description of a custom list item