Loading lesson path
Concept visual
Start at both ends
HTML lists allow web developers to group a set of related items in lists.
<ul> tag. Each list item starts with the <li> tag. The list items will be marked with bullets (small black circles) by default:
<ul>
Formula
< li > Coffee </li >
< li > Tea </li >
< li > Milk </li ></ul>
<ol> tag. Each list item starts with the <li> tag. The list items will be marked with numbers by default:
<ol>
Formula
< 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.
<dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag describes each term:
<dl>
Formula
< dt > Coffee </dt ><dd>- black hot drink</dd>
Formula
< dt > Milk </dt ><dd>- white cold drink</dd> </dl>
<ul>