Horje
HTML Lists

HTML lists allow web developers to group a set of related items in lists.

An unordered HTML list:

  • Item
  • Item
  • Item
  • Item

An ordered HTML list:

  1. First item
  2. Second item
  3. Third item
  4. Fourth item

 


Full Example of HTML Lists

index.html
Example: HTML
<!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 should be:

Full Example of HTML Lists





Category:
Web Tutorial
Sub Category:
HTML Lists
Uploaded by:
Admin


Read Article
https://horje.com/learn/1434/reference