HTML DOM Ol start properties
Examples
Setting ordered list, starting with "75":
document.getElementById("myOl").start="75";
try it"
Definition and Usage
start property sets or returns the value of an ordered list of start properties.
start an ordered list attribute specifies a start value in the first list item.
Browser Support
All major browsers support the start attribute.
grammar
Returns start properties:
olObject .start
Setting start properties:
olObject .start= number
Property Value
值 | 描述 |
---|---|
number | 规定有序列表中第一个列表项的起始值。 |
technical details
return value: | Number that represents the starting value in the ordered list first list item. |
---|
More examples
Examples
Returns an ordered list of the first list item values:
var x = document.getElementById("myOl").start;
x The output is:
50
try it"
Examples
When using Roman numerals (type = "I"), set up an ordered list, starting with "5":
document.getElementById("myOl").start="5";
try it"
related articles
HTML Reference Manual: HTML <OL> Start property