HTML supports ordered, unordered and defined lists
##Unordered list
An unordered list is a list of items marked with bold dots (typically small black circles). Unordered list starts withHTML Introduction Tutorial)
<ul> <li>Coffee</li> <li>Milk</li> </ul>
The browser displays as follows:
CoffeeMilk
Ordered list
Similarly, an ordered list is also a list of items, and the list items are marked with numbers. The ordered list starts with the<ol> <li>Coffee</li> <li>Milk</li> </ol>
The browser displays as follows:
CoffeeMilk
Define List
A custom list is not just a list of items, but a combination of items and their comments. Custom lists start with a<dl> <dt>Coffee</dt> <dd>Black hot drink</dd> <dt>Milk</dt> <dd>White cold drink</dd> </dl>
The browser displays as follows:
Coffee Black hot drink Milk White cold drink
The above is the detailed content of Types of HTML lists. For more information, please follow other related articles on the PHP Chinese website!