List

HTML Lists

HTML supports ordered, unordered and definition lists.

1. Unordered Lists

Example

<html>
<Head>
<tittle>Unordered List Tag </tittle>
</Head>
<body>
<ul>
li>Coffee</li>
<li>Milk</li>
</ul>
</body>
</html>

Output:-

Here is how it looks in a browser:-

  • Coffee
  • Milk

2. Ordered Lists

Example

<html>
<Head>
<tittle>ordered List Tag </tittle>
</Head>
<body>
<ol>
li>Coffee</li>
<li>Milk</li>
</0l>
</body>
</html>

Output:-

  1. Coffee
  2. Milk