- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Create an ordered list in HTML
The HTML <ol> tag is used for creating an ordered list. You can try to run the following code to create an ordered list using the <ol> tag −
The HTML <ol> tag supports the following additional attributes −
Attribute | Value | Description |
---|---|---|
compact | autofocus | Defines if compact rendering is required. |
reversed ![]() | reversed | Specifies the order of the list (descending). |
start ![]() | number | Specifies the initial number to start the list. |
type | A a I i 1 | Specifies the style of the list. |
Example
You can try to run the following code to create an ordered list using the <ol> tag −
<!DOCTYPE html> <html> <head> <title>HTML ol Tag</title> </head> <body> <p>Programming Languages:</p> <ol> <li>Java</li> <li>C++</li> <li>C</li> </ol> </body> </html>
- Related Articles
- How to create an ordered list in HTML?
- How to create an ordered list with list items numbered with numbers in HTML?
- How to create an ordered list with list items numbered with lowercase letters in HTML?
- How to create an ordered list with list items numbered with uppercase letters in HTML?
- How to create an ordered list with list items numbered with uppercase roman numbers in HTML?
- How to create an ordered list with list items numbered with lowercase roman numbers in HTML?
- Set the start value of an ordered list in HTML?
- Make an Ordered list with Bootstrap
- How to create an unordered list without bullets in HTML?
- Style the numbering characters in an ordered list with CSS
- How to create an unordered list with disc bullets in HTML?
- How to create an unordered list with circle bullets in HTML?
- How to create an unordered list with square bullets in HTML?
- How to create an unordered list with image bullets in HTML?
- Create a selectable list in HTML

Advertisements