For technical reasons, the title of this article is not the text used to call this API. Instead, use ol
The ol element is used to define an ordered list. The element encloses one or more list items, enclosed in li elements.
Overview TableThe **ordered list**, represented by the **ol** element, is most often used to group a list of items, enclosed in [**li**](/html/elements/li) elements, together in an ordered and semantic way.
ExamplesThis example uses the ol element to create a numbered list.
<ol>
<li>This is the first list item</li>
<li>This is the second list item</li>
</ol>
The ol element with the type attribute set to a.
<ol type="a">
<li>This is the first list item</li>
<li>This is the second list item</li>
</ol>
Typical browser default CSS properties for the ol element.
display: block;
list-style-type: decimal;
margin-top: 16px;
margin-bottom: 16px;
Notes Remarks
The type attribute sets the list type for all ensuing lists unless a different type value is set.
Standards informationMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4