HTML lists allow web developers to group related items together in an organized way.
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
<ul> <li>Apple</li> <li>Banana</li> <li>Milk</li> </ul>
Items are displayed with bullet points by default.
An ordered list starts with the <ol> tag. Each item is displayed with numbers by default.
<ol> <li>Good</li> <li>Better</li> <li>Best</li> </ol>
Lists can be placed inside other lists to create sub-items.
<ul>
<li>Item 1
<ul>
<li>Subitem 1.1</li>
<li>Subitem 1.2</li>
</ul>
</li>
<li>Item 2</li>
</ul>
A description list contains terms and their descriptions.
<dl> <dt>Coffee</dt> <dd>Black hot drink</dd> <dt>Milk</dt> <dd>White cold drink</dd> </dl>
Creates an unordered list.
Creates an ordered list.
Creates a list item.
Creates a description list.
Defines a term in a description list.
Defines the description of a term.
Which tag is used to create an unordered list?