<ol>: The HTML Ordered List Element

1 Description

The HTML <ol> element stands for 'ordered list'. The <ol> element is used whenever you want to create a numbered list. Instead of numbers the list can be ordered using uppercase letters, lowercase letters, or roman numerals.

See Also

Review information about the following elements as they are related to the <ol> element.

  1. The <li> element.
  2. The <menu> element.
  3. The <ul> element.

2 Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Example Page</title>
    </head>
    <body>
        <h1>Example HTML Page</h1>
        <p>Below is a simple example of an ordered list.</p>
        <h2>Cars</h2>
        <ol>
            <li>Ford</li>
            <li>Lincoln</li>
            <li>GMC</li>
            <li>Tesla</li>
        </ol>
    </body>
</html>

This document was last updated: