The HTML <ol> Tag for Ordered Lists

Use the <ol> Tag for Numbered Lists in HTML 5

The <ol> tag is used for ordered lists in HTML. This tag is often used for numbered lists like the example of an ordered list below. For bulleted lists, use the <ul> tag instead.

Each list item in an ordered list is an li child element of the ol element, created using the <li> tag. In an ordered list, items are usually numbered but a different list item style can be specified to omit the numbers or use a bullet or image instead.

Here is an example of an ordered list using the ol element:

Child elements of a table element
  1. an optional <caption> tag
  2. optional <colgroup> tags and/or <col/> tags
  3. an optional <thead> tag
  4. an optional <tfoot> tag
  5. one or more <tr> tags either directly under the table element or inside a tbody element
  6. an optional <tfoot> tag

This is an actual working example of the <ol> tag example code below.