: The OL Element
Last updated: 2026-09-12
<ol>The OL Element
The <ol> (ordered list) element defines a numbered list. The type attribute switches numbering style, start sets the starting value, and reversed reverses the order.
| Category | Lists |
|---|---|
| Content Model | Zero or more <li>, script-supporting elements |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </ol> tag |
| Status | Standard |
📝 Syntax
<ol>
<li>Step one</li>
<li>Step two</li>
</ol>
⚙️ Attributes
This element supports the global attributes plus the following:
| Attribute | Value | Description |
|---|---|---|
type | Keyword | The numbering style.
|
start | Number | The starting number of the list. Default: |
reversed | Boolean | Number in reverse (descending). |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <ol> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||