HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Ol Object : Set the start value of the ordered list to "75"
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.
Property | |||||
---|---|---|---|---|---|
start | Yes | Yes | Yes | Yes | Yes |
Return the start property:
Set the start property:
Value | Description |
---|---|
number | Specifies the start value of the first item in the ordered list |
Return Value: | A Number, representing the start value of the first list item in the ordered list |
---|
Return the value of the first list item in the ordered list:
var x = document.getElementById("myOl").start;
Set the start value of the ordered list to "5", when using roman numbers (type="I"):
document.getElementById("myOl").start = "5";
HTML reference: HTML <ol> start attribute
❮ Ol Object