Ol start attribute
Definition and Usage
start
Sets or returns the value of the start attribute of the ordered list.
<ol> start attribute Specify the starting value of the first list item in the ordered list.
See also:
HTML Reference Manual:HTML <ol> Tag
Example
Example 1
Set the starting value of the ordered list to "100":
document.getElementById("myOl").start = "100";
Example 2
Return the value of the first list item in the ordered list:
var x = document.getElementById("myOl").start;
Example 3
When using Roman numerals (type="I"), set the starting value of the ordered list to "5":
document.getElementById("myOl").start = "5";
Syntax
Return the start attribute:
olObject.start
Set start attribute:
olObject.start = number
Attribute Value
Value | Description |
---|---|
number | Specifies the starting value of the first item in the ordered list. |
Technical Details
Return Value: | Number, representing the starting value of the first list item in the ordered list. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
Related Pages
HTML Reference Manual:HTML <ol> start Attribute