Core HTML

Ordered Lists

An ordered list is used to present items that should be sequentially ordered. In an ordered list, the list is encapsulated in <ol> tags. Each item in the list is contained in a <li> tag. The letters "ol" stand for ordered list, while the letters "li" stand for list item. We can put a title for the list directly inside the <ol> tag, but before any <li> tag to act as a heading. Here, we have The Ten Commandments as our heading for the list. We used bold to make heading appear more significant.

TenCommandments.html

<!DOCTYPE html>
<html>
<head>
    <title>XoaX.net's HTML Ordered List Example</title>
</head>
<body>
  <ol><b>The Ten Commandments</b>
    <li>I am the LORD your God: you shall not have strange Gods before me.</li>
    <li>You shall not take the name of the LORD your God in vain.</li>
    <li>Remember to keep holy the LORD'S Day.</li>
    <li>Honor your father and your mother.</li>
    <li>You shall not kill.</li>
    <li>You shall not commit adultery.</li>
    <li>You shall not steal.</li>
    <li>You shall not bear false witness against your neighbor.</li>
    <li>You shall not covet your neighbor's wife.</li>
    <li>You shall not covet your neighbor's goods.</li>
  </ol>
</body>
</html>
 

Output

 
 

© 2007–2025 XoaX.net LLC. All rights reserved.