<ol>

Description

This element creates an indented ordered list. This element is used in conjunction with the <li> element, which creates each item in the list.

Example


<html>
<body>
     <ol>
          <li>first item</li>
          <li>second item</li>
          <li>third item</li>
          <li>fourth item</li>
          <li>fifth item</li>
     </ol><!--   www.  ja v  a  2s . c o m-->
</body>
</html>

Click to view the demo

The code above generates the following result.

ol




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference