Write the Example for UL, OL and DL List.

This example will help to write the code for implementing UL list in HTML, OL list in HTML and DL list in HTML.

Write the Example for UL, OL and DL List.

HTML CODE


<body bgcolor="#CCC">
<p>Drinks</p>
<ol type="i">
 <li>coffee
  <ol type="a">
   <li>hot coffee</li>
    <li>cold coffee</li>
  </ol></li>
 <li>Tea
  <ol type="a">
   <li>Milk tea</li>
    <li>black tea</li>
  </ol></li>
 <li>Milk</li>
</ol>

<p>Part 2</p>
<ul type="square">
<li>tea</li>
 <li>coffee</li>
 <li>milk</li>
</ul>

<dl>
 <dt>coffee</dt>
  <dd>black hot drink</dd>
 <dt>milk</dt>
  <dd>white hot drink</dd>
</dl>