The type property of the HTMLOListElement interface indicates the kind of marker to be used to display ordered list.
It reflects the type attribute of the <ol> element.
Note: The type can be defined in CSS with the list-style-type property. The list-style-type property provides many more values.
A string representing the type.
Its possible values are listed in the attribute marker types section.
<ol id="order-list">
<li>Fee</li>
<li>Fi</li>
<li>Fo</li>
<li>Fum</li>
</ol>const olElement = document.querySelector("#order-list");
// if type is not specified then return empty string
console.log(olElement.type); // Output: ""
olElement.type = "i"; // Using roman numeral type
console.log(olElement.type); // Output: "i"