Definition list in html
- how to use ordered list in html
- how to use numbered list in html
- how to use ordered and unordered list in html
- how to put ordered list in center in html
Ordered list example!
HTML Ordered Lists
HTML Ordered List is created by the HTML <ol> tag, to display elements in an ordered form, either numerical or alphabetical.
Ul tag in html
Each item within the list is placed within a <li> tag, which stands for “list item”.
The list is automatically numbered by the browser, but the style of numbering can be adjusted using attributes and CSS.
Syntax:
<ol><li>...</li>
<li>...</li>
<li>...</li>
</ol>
Example – Creating a Basic Ordered 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 numbers (default) |
| type=”A” | This will list the items in uppercase letters. |
| type=”a” | This will list the items in lowercase letters. |
| type=”I” | This will list the items with uppercase Roman numbers. |
| type=”i” | This will list the items with lowercase Roman numbers. |
1.
Number – Order
- how to use ol in html
- what is ordered list in html