HTMLOListElement: start property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The start
property of the HTMLOListElement
interface indicates starting value of the ordered list, with default value of 1.
It reflects the start
attribute of the <ol>
element.
Note:
The start
property value is independent of the HTMLOListElement.type
property; it is always numeric, even when type is letters or Roman numerals.
Value
A long
value.
Examples
HTML
html
<ol id="order-list">
<li>Fee</li>
<li>Fi</li>
<li>Fo</li>
<li>Fum</li>
</ol>
JavaScript
js
const olElement = document.querySelector("#order-list");
console.log(olElement.start); // Output: "1"
olElement.start = "11";
console.log(olElement.start); // Output: "11"
Result
Specifications
Specification |
---|
HTML # dom-ol-start |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
start |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.