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
- an optional <caption> tag
- optional <colgroup> tags and/or <col/> tags
- an optional <thead> tag
- an optional <tfoot> tag
- one or more <tr> tags either directly under the table element or inside a tbody element
- an optional <tfoot> tag
This is an actual working example of the <ol> tag example code below.