Lists / Group Ordered
WCAG Description of Component
The ordered list consists of one
Reference link<ol>element and multiple list item (<li>) elements:
Accepted Attributes on the <ol> tag
reversed=""
This Boolean attribute specifies that the list’s items are in reverse order. Items will be numbered from high to low.start=""
An integer to start counting from for the list items. Always an Arabic numeral (1, 2, 3, etc.), even when the numberingtypeis letters or Roman numerals. For example, to start numbering elements from the letter "d" or the Roman numeral "iv," usestart="4".-
type=""- Sets the numbering type:
afor lowercase lettersAfor uppercase lettersifor lowercase Roman numeralsIfor uppercase Roman numerals1for numbers (default)
- The specified type is used for the entire list unless a different
typeattribute is used on an enclosed<li>element.
- Sets the numbering type:
Note
Details about number order. In ordered lists, it is not possible to continue list numbering automatically from a previous list or to hide numbering of some list items. However, authors can reset the number of a list item by setting its value attribute. Numbering continues from the new value for subsequent list items.
Reference Links
Component Example
- List Item
- List Item
- List Item
- List Item
- List Item
- List Item
- List Item
- List Item
- List Item
Code Snippets
HTML
<ol>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
<li>List Item
<ol>
<li>List Item</li>
<li>List Item</li>
<li>List Item</li>
</ol>
</li>
<li>List Item</li>
<li>List Item</li>
</ol>
History Tracking
- Code orginally created by Kelly; Approved by Steen on Nov 24,2023