From http://www.w3schools.com (Copyright Refsnes Data)
The <ol> tag defines the start of an ordered list.
The "start" attribute were deprecated in HTML 4.01, in HTML 5 it is allowed.
The "compact" and "type" attributes were deprecated in HTML 4.01, and are no longer supported in HTML 5.
Tip: Use CSS to define the type of list.
Source | Output |
---|---|
<ol> <li>Coffee</li> <li>Tea</li> </ol> <ol start="50"> |
|
Attribute | Value | Description | 4 | 5 |
---|---|---|---|---|
compact | compact_rendering | Deprecated. Use styles instead | 4 | |
start | start_on_number | Specifies the number to start on. Deprecated. Use styles instead | 4 | 5 |
type | A a I i 1 |
Specifies the type of the list. Deprecated. Use styles instead | 4 |
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title |
For a full description, go to Standard Attributes in HTML 5.
onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload |
For a full description, go to Event Attributes in HTML 5.
An ordered list
An ordered list.
From http://www.w3schools.com (Copyright Refsnes Data)