Lists
In HTML we have two types of lists they are ordered list and unordered list. We denote ordered list with <ol> lag and unorderd list with <ul> tag. The list items are denoted with <li> tag.
Defaultly unordered list have small black circle bullets and ordered list have numerical bullets. We can modify that bullets.
Unordered list Example
<!DOCTYPE
html>
<html>
<body>
<h2>An
unordered HTML list</h2>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</html>
ordered list Example
<!DOCTYPE html>
<html>
<body>
<h2>An ordered HTML list</h2>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</body>
</html>
Tags:
HTML