'ol' creates an indented numbered (ordered) list : ol « Tags « HTML / CSS






'ol' creates an indented numbered (ordered) list

  
    
<html>
<head>
    <title>ol element example</title>
</head>
<body>
    <ol type="I">
        <li>first item</li>
        <li>second item</li>
        <li>third item</li>
        <li>fourth item</li>
        <li>fifth item</li>
    </ol>
</body>
</html>
    
      
        
    
  








Related examples in the same category

1.'start' specifies the starting number in an ordered list
2.'type' defines the style for the list items
3.Unordered Lists
4.OL tag
5.Style for 'ol li'
6.list-style: none for OL
7.Add border to LI tag
8.Nested OL tag
9.Three level OL list
10.ol elements without a type attribute: have a numeric sequence type (i.e., 1, 2, ...)
11.A nested ordered list
12.Example of the start Attribute
13.Example of the value Attribute
14.Ordered lists started at 5
15.Numbering options on ordered lists
16.ol { counter-reset:Item }
17.Ordered List Example
18.ol {list-style-type: lower-roman;}