The HTML start attribute is used with ordered list element to specify the starting value of the list item.
Definition and Usage
➔ By default, ordered lists start counting from 1 if no number is specified.
Syntax
//In HTML
<ol start="50" id="sample">
<li>Apple</li>
<li>Banana</li>
<li>Cherry</li>
</ol>
// In Javascript
let element = document.querySelector("#sample");
element.start= 10;
//Or
element.setAttribute('start', "10");
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML start element example</title>
<meta charset="utf-8" />
</head>
<body>
<h3>HTML start element example</h3>
<p>start attribute is used to specify the starting value of the orderlist item</p>
<ol start="10" id="sample">
<li>Apple</li>
<li>Banana</li>
<li>Cherry</li>
</ol>
</body>
</html>
Click on the "Try it Now" button to see how it works.