Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

HTML lists

HTML lists

HTML lists

An ordered and unordered HTML list

An unordered HTML list:

*Item
*Item
*Item
*Item


An ordered HTML list:

1 First item
2 Second item
3 Third item
4 Fourth item

 

Unordered HTML List(HTML lists)

An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.

The list items will be marked with bullets (small black circles) by default:

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

 

Ordered HTML List(HTML lists)

An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

The list items will be marked with numbers by default:

<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

 

HTML Description Lists(HTML lists)

HTML also supports description lists.

A description list presents a collection of terms accompanied by their corresponding explanations.

The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag describes each term:

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