HTML - Ordered Lists

Overview

Estimated time: 10–15 minutes

Examples

<ol>
  <li>First</li>
  <li>Second</li>
</ol>

<!-- Start at 10 -->
<ol start="10"><li>Tenth</li></ol>

<!-- Reverse order -->
<ol reversed><li>C</li><li>B</li><li>A</li></ol>

Common Pitfalls

  • Using ordered lists when order is irrelevant—prefer ul.