X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Ol start Property

Ol Object Reference Ol Object

Example

Set the start value of the ordered list to "75":

document.getElementById("myOl").start = "75";

Try it yourself »


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

Internet Explorer Firefox Opera Google Chrome Safari

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 item in the ordered list

Technical Details

Return Value: A Number, representing the start value of the first list item in the ordered list


More Examples

Example

Return the value of the first list item in the ordered list:

var x = document.getElementById("myOl").start;

The result of x will be:

50

Try it yourself »

Example

Set the start value of the ordered list to "5", when using roman numbers (type="I"):

document.getElementById("myOl").start = "5";

Try it yourself »


Related Pages

HTML reference: HTML <ol> start attribute


Ol Object Reference Ol Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook