HTML Lists

HTML Tutorial

HTML Forms

HTML Graphics

HTML Media

HTML API

HTML Lists

HTML lists enables web developers to group a set of items that are related into lists.

Example:

				
					<!DOCTYPE html>
<html>
<body>
<h2>An Unordered HTML List</h2>
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>  
<h2>An Ordered HTML List</h2>
<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol> 
</body>
</html>

				
			

Output:

An Unordered HTML List

  • Coffee
  • Tea
  • Milk

An Ordered HTML List

  1. Coffee
  2. Tea
  3. Milk