An ordered list begins with the <ol> tag, and each item in the list is defined using the < li> tag.
list items in an ordered list are marked with numbers By default:
type="I" inside the <ol> tag.<!DOCTYPE html> <html> <head> <title>Roman Numerals List</title> </head> <body> <h3>Project Execution Phases</h3> <ol type="I"> <li>Requirement Analysis</li> <li>System Design & Prototyping</li> <li>Deployment & Maintenance</li> </ol> </body> </html>
type="I" changes the numbering format to capital Roman numerals (I, II, III, IV...).
type="a" along with the start="5" attribute.<!DOCTYPE html> <html> <head> <title>Custom Start List</title> </head> <body> <h3>Additional Steps (Section 2)</h3> <ol type="a" start="5"> <li>Review Pull Request</li> <li>Merge into Staging</li> <li>Trigger Production Build</li> </ol> </body> </html>
start attribute always takes a numeric position (5th position = letter 'e' when combined with type="a").
reversed attribute directly inside the <ol> tag.<!DOCTYPE html> <html> <head> <title>Reversed List Example</title> </head> <body> <h3>Product Launch Countdown</h3> <ol reversed> <li>Final Security Audit</li> <li>Server Pre-warming</li> <li>DNS Switch to Live</li> </ol> </body> </html>
reversed attribute renders the order in descending order (3, 2, 1) without modifying the source code sequence.