<ol> <li>Top Level <ol> <li>Sub-Level <ol> <li>Sub-Level Item 1</li> <li>Sub-Level Item 2</li> <li>Sub-Level Item 3 <ol> <li>Sub-Sub-Level Output</li> </ol> </li> </ol> </li>As you can see, an order list can go several layers deep. It gets tricky to write a program that can generate this output since Sub-Level Item 3, Sub-Level and Top Level areas do not close their respective tags until after the subordinate tags are complete. However, other tags such as Sub-Level Item 1 and 2 close their tags immediately.