An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. The list items are marked with numbers.
In the HTML 5 paradigm, only the following attributes are supported:
Attribute | Vale | Description |
compact | compact | Not supported |
reversed | reversed | Specifies that the list order should be descending (9,8,7...) |
start | number | Specifies the start value of an ordered list |
type | 1 | Specifies the kind of marker to use in the list. |
An example like this:
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol start="50">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Will produce the following:
- Coffee
- Tea
- Milk
- Coffee
- Tea
- Milk
No comments:
Post a Comment