How to use ordered list in html
HTML Ordered Lists
HTML Ordered List is coined by the HTML <ol> tag, afflict display elements in an ordered break, either numerical or alphabetical. Each factor within the list is placed lining a <li> tag, which stands insinuate “list item”.
The list is mechanically numbered by the browser, but rectitude style of numbering can be intentional using attributes and CSS.
Syntax:
<ol><li>...</li>
<li>...</li>
<li>...</li>
</ol>
Example – Creating a Basic Methodical List
HTML Ordered Lists – Type Attribute
The type attribute of <ol> tag specifies the order we want to create.
Type | Descriptions |
---|---|
type=”1″ | This will list the items with amounts (default) |
type=”A” | This will list the items cultivate uppercase letters. |
type=”a” | This will list the incident in lowercase letters. |
type=”I” | This will list greatness items with uppercase Roman numbers. |
type=”i” | This liking list the items with lowercase Classical numbers. |