YouTip LogoYouTip

Prop Ol Type

# Ol type Property [![Image 8: Ol Object Reference](#) Ol Object](#) ## Example Set an ordered list to use lowercase letters: document.getElementById("myOl").type="a"; [Try it Β»](#) * * * ## Definition and Usage The type property sets or returns the value of the type attribute of an ordered list. The type attribute specifies the kind of marker to use in the list (letters or numbers). * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The type property is supported in all major browsers. * * * ## Syntax Return the type property: _olObject_.type Set the type property: _olObject_.type="1|a|A|i|I" ## Property Values | Value | Description | | --- | --- | | 1 | Default. Decimal numbers (1, 2, 3, 4) | | a | Alphabetical ordered list, lowercase (a, b, c, d) | | A | Alphabetical ordered list, uppercase (A, B, C, D) | | i | Roman numerals, lowercase (i, ii, iii, iv) | | I | Roman numerals, uppercase (I, II, III, IV) | ## Technical Details | Return Value: | A string, representing the kind of marker used in the ordered list. | | --- | * * * ## More Examples ## Example Return the kind of marker used in the ordered list: var x = document.getElementById("myOl").type; The _x_ output will be: I [Try it Β»](#) ## Example Set an ordered list to use uppercase letters: document.getElementById("myOl").type="A"; [Try it Β»](#) ## Example Set an ordered list to use lowercase Roman numerals: document.getElementById("myOl").type="i"; [Try it Β»](#) ## Example Set an ordered list to use uppercase Roman numerals: document.getElementById("myOl").type="I"; [Try it Β»](#) * * * ## Related Articles HTML Reference: [HTML
    type attribute](#) * * Ol Object](#)
← Dom Obj OptgroupProp Ol Start β†’