How to create an ordered list in HTML?
Updated On: 2024-06-02
To show sequential information or hierarchical Data, we need to use ordered list in html. Here is a complete guide on how to create it with several code examples.
Basic ordered list in HTML
We use <ol>
tag to create ordered list in HTML. Here <ol>
stands for ordered list. We close this tag using </ol>
tag.
Types of Ordered Lists in HTML
01) Number List
02) Uppercase Letters
03) Lowercase Letters
04) Uppercase Roman Numbers
05) Lowercase Roman Numbers
06) Control List Counting
07) Nested Ordered Lists
Number List
HTML number list creates list sequentially using numeric number 1, 2, 3, 4..We have created a list five country names.
Uppercase Letters
Lowercase Letters
Uppercase Roman Numbers
Lowercase Roman Numbers
Control List Counting
Nested Ordered Lists
Related video
Related Resources
For more information, you can use the following resources:
HTML Ordered Lists at Geeksforgeeks
The Ordered List element at mdn
HTML List at FreeCodeCamp
HTML Ordered Lists at W3schools