YouTip LogoYouTip

Prop Ol Start

HTML DOM Ol start Property

HTML DOM Ol start Property

HTML DOM Ol start Property

-- Learning not just technology, but dreams!

JavaScript Reference Manual

Overview

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>

HTML DOM Object Object

<optgroup>

Ol start Property

Ol Object Reference Manual Ol Object

Example

Set the start value of an 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 ExplorerFirefoxOperaGoogle ChromeSafari

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

Try it yourself Β»

Example

When using Roman numerals (type="I"), set the start value of an ordered list to "5":

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

Try it yourself Β»


Related Articles

HTML Reference Manual: HTML <ol> start attribute


Ol Object Reference Manual Ol Object

HTML DOM Object Object

<optgroup>

iFlytek Xingchen Coding Plan includes free model call quota, DeepSeek, GLM, Kimi, MiniMax, one-stop experience and deployment platform. Configuration Guide Β₯3.9/ month Sign up now

← Prop Ol TypeProp Ol Reversed β†’