HTML ol

From Htmlpedia
Jump to: navigation, search

HTML Element OL

Definition and Usage

The <ol> begins an ordered list.


Example

<ol>
   <li>Item One</li>
   <li>Item Two</li>
</ol>

Outputs

  1. Item One
  2. Item Two

Attributes

Have been deprecated in favor of CSS styles.

CSS Styles

To define the list type (eg 1 2 3, a b c, i ii iii etc) use style='list-type: lower-roman'