HTML learning (12) list

HTML includes an ordered list ol (ordered list), unordered list ul (unordered list), custom lists dl (difinition list)

Ordered list:

<ol start="50">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

  1. Coffee
  2. Tea
  3. Milk

Unordered list:

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

  • Coffee
  • Tea
  • Milk

HTML Custom List

Custom list is not just a project, but a combination of project and its comments.

A custom list starts with <dl> tag. Each custom list item starts with <dt>. Each list item is defined from the description starts with <dd>.

<dl>
  <dt>Coffee</dt>
  <dd>- black hot drink</dd>
  <dt>Milk</dt>
  <dd>- white cold drink</dd>
</dl>

Coffee
- black hot drink
Milk
- white cold drink

Guess you like

Origin www.cnblogs.com/1016391912pm/p/11529091.html