CKTIS / HTML
ol — ordered list
The ol element represents a list whose item order affects its meaning. Use li for the items and start, reversed, and type to control numbering.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<ol [reversed] [start="integer"] [type="1|a|A|i|I"]>
<li>...</li>
</ol>Use ol when rearranging items would change their meaning, such as instructions. Use ul when order is insignificant.
Items are direct li children, in tree order. The content model permits zero or more li and script-supporting elements. Both ol tags are required.
start takes an integer. Numbering normally starts at 1; with reversed but no start, it starts at the number of owned li items. reversed decreases numbering without rearranging items. It is boolean: even reversed="false" enables it.
type selects markers: 1, a, A, i, I; decimal is the default. start remains an integer even for letters. CSS can change marker presentation. An li element's value sets that item's number and affects subsequent numbering.
The example presents a countdown. Expected output shows text and markers, not exact browser spacing.
Examples
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Countdown</title>
</head>
<body>
<ol reversed start="3">
<li>Ready</li>
<li>Set</li>
<li>Go</li>
</ol>
</body>
</html>Result
3. Ready 2. Set 1. Go
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.