Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

ol

The <ol> ordered list element is used to render numbered lists using the <li> element.

Code Example

<h3>My favorite superheroes</h3> <ol> <li>Superman</li> <li>Ironman</li> <li>Batman</li> </ol> open in code editor

Attributes

globals - the global attributes common to all elements possible values: see global attribute list reversed - specify that the list go in reverse or descending order possible values: value not required start - the start value of the first list item("1" is default) possible values: "integer" type - specify the marker type to be number, letter or symbol possible values: "1", "a", "A" , "i", "I" 1 - decimal numbers a - lowercase letters A - uppercase letters i - lowercase roman numerals I - uppercase roman numerals

Official Documentation

http://www.w3.org/TR/html/grouping-content.html#the-ol-element

HTML

Elements

aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr