HTML DOM Ol start Property
HTML DOM Ol start Property
-- Learning not just technology, but dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
JavaScript Reference Manual
JavaScript Objects
JavaScript Array Object JavaScript Boolean Object JavaScript Date Object JavaScript Math Object JavaScript Number Object JavaScript String Object JavaScript RegExp Object JavaScript Global Properties/Functions JavaScript Operators JavaScript Error
Browser Objects
Window Object Navigator Object Screen Object History Object Location Object Storage Object
DOM Objects
HTML DOM Document Object HTML DOM Element Object HTML DOM Attribute Object HTML DOM Event Object HTML DOM Console Object CSSStyleDeclaration Object DOM HTMLCollection
HTML Objects
<a> <area> <audio> <base> <blockquote> <body> <button> <canvas> <col> <colgroup> <datalist> <del> <details> <dialog> <embed> <fieldset> <form> <iframe> <frameset > <img> <ins> <input> - button <input> - checkbox <input> - color <input> - date <input> - datetime <input> - datetime-local <input> - email <input> - file <input> - hidden <input> - image <input> - month <input> - number <input> - range <input> - password <input> - radio <input> - reset <input> - search <input> - submit <input> - text <input> - time <input> - url <input> - week <keygen> <link> <label> <legend> <li> <map> <menu> <menuItem> <meta> <meter> <object> <ol> <optgroup> <option> <param> <progress> <q> <script> <select> <source> <style> <table> <td> <th> <tr> <textarea> <title> <time> <track> <video>
Ol start Property
Example
Set the start value of an ordered list to "75":
document.getElementById("myOl").start="75";
Definition and Usage
The start property sets or returns the value of the start attribute of an ordered list.
The start attribute specifies the start value of the first list item in an ordered list.
Browser Support
The start property is supported in all major browsers.
Syntax
Return the start property:
olObject.start
Set the start property:
olObject.start=number
Property Values
| Value | Description |
|---|---|
| number | Specifies the start value of the first list item in an ordered list. |
Technical Details
| Return Value: | A number, representing the start value of the first list item in an ordered list. |
|---|
More Examples
Example
Return the value of the first list item in an ordered list:
var x = document.getElementById("myOl").start;
The x output will be:
50
Example
When using Roman numerals (type="I"), set the start value of an ordered list to "5":
document.getElementById("myOl").start="5";
Related Articles
HTML Reference Manual: HTML <ol> start attribute
YouTip