HTML supports ordered, unordered, and defined lists: Ordered list First list item Second list item Third list item Unordered list List item List item List item An unordered list is a list of items marked with bold dots (typical small black circles). Unordered list usage The browser displays as follows: Coffee Milk Similarly, an ordered list is a list of items, which are marked with numbers. The ordered list begins with List items are marked with numbers. The browser displays as follows: Coffee Milk A custom list is not just a list of items, but a combination of projects and their comments. Customize the list to The browser displays as follows: Black hot drink White cold drink Tip: paragraphs, newline characters, pictures, links, and other lists can be used inside list items. 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 11.15.1. HTML list ¶
HTML unordered list ¶
<ul>
label<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
HTML ordered list ¶
<ol>
label. Each list item starts with
<li>
label.<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
HTML Custom list ¶
<dl>
label begins. Each custom list item is specified by
<dt>
start. Each custom list item is defined with
<dd>
start.<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
Precautions-useful Tip ¶
HTML list label ¶