Order List in HTML | How To Create Order list in HTML?
HTML Order List
This list is created by using <ol>
tag. Any series can be used to order the elements, like series of digits, alphabets, roman numerals, etc. All these series gets increased by one with every new element entered in the list.
Ex.-For a numbered order list, the numbering starts at one and is incremented by one for each successive ordered list element tagged with <li>
. Have a look at the example below to understand the concept properly.
type
Attribute
HTML Order List The type
attribute is used to change the series type.
Value | Description |
---|---|
type="1" |
The list items will be numbered with numbers (default). |
type="A" |
The list items will be numbered with uppercase letters. |
type="a" |
The list items will be numbered lowercase letters. |
type="I" |
The list items will be numbered with uppercase roman numbers |
type="i" |
The list items will be numbered with lowercase roman numbers. |
start
Attribute
HTML Order List The start
attribute is used to control the counting in the list. By default, the counting starts from '1' or from 'a', but we can change counting to start from a specified number or alphabet. Look at the example below to see the syntax of using this attribute.