This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
HTML lists allow web developers to group a set of related items in lists.
An unordered list starts with the
tag. Each list item starts with the 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>
An ordered list starts with the
tag. Each list item starts with the tag. The list items will be marked with numbers by default:<ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
HTML also supports description lists. A description list is a list of terms, with a description of each term. The
tag defines the description list, the tag defines the term (name), and the tag describes each term:<dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl>
Tag | Description |
---|---|
<ul> | Defines an unordered list |
<ol> | Defines an ordered list |
<li> | Defines a list item |
<dl> | Defines a description list |
<dt> | Defines a term in a description list |
<dd> | Describes the term in a description list |
For a complete list of all available HTML tags, visit HTML Tag Reference.