![]() |
VOOZH | about |
The HTML <ol> type attribute is used to specify the numbering style of an ordered list.
Syntax:
<ol type="1 | a | A | i | I">Example 1: We defines an ordered list (<ol>) with the type="1" attribute, specifying numbering style as decimal. It lists HTML, CSS, and JS. The page also displays a title and a heading.
Example 2: Demonstrates various list types using the <ol> element's type attribute: decimal numbering (1, 2, 3), alphabetical (a, b, c), uppercase alphabetical (A, B, C), lowercase Roman numerals (i, ii, iii), and uppercase Roman numerals (I, II, III).