HTML Basic Tutorial
HTML Media
HTML Advanced Tutorial
In HTML, you can create an ordered list (numbered list) using the <ol> element. Inside the <ol>, each list item is defined using the <li> (list item) element. Here's an example:
Try it yourself
list-style-type Values:|
Attribute Value
|
Description
|
|---|---|
|
type="A"
|
Uppercase letters
|
|
type="a"
|
Lowercase letters
|
|
type="I"
|
Roman numerals
|
|
type="i"
|
Lowercase Roman numerals
|
Try it yourself
Ordered lists can be nested inside each other to create sub-lists.
Try it yourself