ol
Используется для создания маркированного списка, в котором каждый элемент начинается с тега li
. Если к ol
применяются стили, то теги li
их наследуют.
Пример:
Таблица 3×3
Lorem ipsum dolor sit amet, consectetur adipisicing elit |
... |
... |
... |
... |
... |
... |
... |
... |
<table>
<caption>Таблица 3×3</caption>
<col/>
<tbody>
<tr>
<td>Lorem ipsum dolor sit amet, consectetur adipisicing elit</td>
<td>...</td>
<td>...</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td>...</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td>...</td>
</tr>
</tbody>
</table>
Дети:
LI.
|
html 3.2 |
html 4.0 Frameset |
html 4.0 Loose |
html 4.0 Strict |
html 4.0.1 Frameset |
html 4.0.1 Loose |
html 4.0.1 Strict |
xhtml 1 Frameset |
xhtml 1 Strict |
xhtml 1 Transitional |
html5 |
li |
|
|
|
|
|
|
|
|
|
|
|
Атрибуты:
accesskey,
class,
compact,
contenteditable,
contextmenu,
dir,
draggable,
hidden,
id,
lang,
onabort,
onblur,
oncanplay,
oncanplaythrough,
onchange,
onclick,
oncontextmenu,
ondblclick,
ondrag,
ondragend,
ondragenter,
ondragleave,
ondragover,
ondragstart,
ondrop,
ondurationchange,
onemptied,
onended,
onerror,
onfocus,
onformchange,
onforminput,
oninput,
oninvalid,
onkeydown,
onkeypress,
onkeyup,
onload,
onloadeddata,
onloadedmetadata,
onloadstart,
onmousedown,
onmousemove,
onmouseout,
onmouseover,
onmouseup,
onmousewheel,
onpause,
onplay,
onplaying,
onprogress,
onratechange,
onreadystatechange,
onscroll,
onseeked,
onseeking,
onselect,
onshow,
onstalled,
onsubmit,
onsuspend,
ontimeupdate,
onvolumechange,
onwaiting,
reversed,
spellcheck,
start,
style,
tabindex,
title,
type,
xml:base,
xml:id,
xml:lang,
xml:space.
|
html 3.2 |
html 4.0 Frameset |
html 4.0 Loose |
html 4.0 Strict |
html 4.0.1 Frameset |
html 4.0.1 Loose |
html 4.0.1 Strict |
xhtml 1 Frameset |
xhtml 1 Strict |
xhtml 1 Transitional |
html5 |
accesskey |
|
|
|
|
|
|
|
|
|
|
|
class |
|
|
|
|
|
|
|
|
|
|
|
compact |
|
|
|
|
|
|
|
|
|
|
|
contenteditable |
|
|
|
|
|
|
|
|
|
|
|
contextmenu |
|
|
|
|
|
|
|
|
|
|
|
dir |
|
|
|
|
|
|
|
|
|
|
|
draggable |
|
|
|
|
|
|
|
|
|
|
|
hidden |
|
|
|
|
|
|
|
|
|
|
|
id |
|
|
|
|
|
|
|
|
|
|
|
lang |
|
|
|
|
|
|
|
|
|
|
|
onabort |
|
|
|
|
|
|
|
|
|
|
|
onblur |
|
|
|
|
|
|
|
|
|
|
|
oncanplay |
|
|
|
|
|
|
|
|
|
|
|
oncanplaythrough |
|
|
|
|
|
|
|
|
|
|
|
onchange |
|
|
|
|
|
|
|
|
|
|
|
onclick |
|
|
|
|
|
|
|
|
|
|
|
oncontextmenu |
|
|
|
|
|
|
|
|
|
|
|
ondblclick |
|
|
|
|
|
|
|
|
|
|
|
ondrag |
|
|
|
|
|
|
|
|
|
|
|
ondragend |
|
|
|
|
|
|
|
|
|
|
|
ondragenter |
|
|
|
|
|
|
|
|
|
|
|
ondragleave |
|
|
|
|
|
|
|
|
|
|
|
ondragover |
|
|
|
|
|
|
|
|
|
|
|
ondragstart |
|
|
|
|
|
|
|
|
|
|
|
ondrop |
|
|
|
|
|
|
|
|
|
|
|
ondurationchange |
|
|
|
|
|
|
|
|
|
|
|
onemptied |
|
|
|
|
|
|
|
|
|
|
|
onended |
|
|
|
|
|
|
|
|
|
|
|
onerror |
|
|
|
|
|
|
|
|
|
|
|
onfocus |
|
|
|
|
|
|
|
|
|
|
|
onformchange |
|
|
|
|
|
|
|
|
|
|
|
onforminput |
|
|
|
|
|
|
|
|
|
|
|
oninput |
|
|
|
|
|
|
|
|
|
|
|
oninvalid |
|
|
|
|
|
|
|
|
|
|
|
onkeydown |
|
|
|
|
|
|
|
|
|
|
|
onkeypress |
|
|
|
|
|
|
|
|
|
|
|
onkeyup |
|
|
|
|
|
|
|
|
|
|
|
onload |
|
|
|
|
|
|
|
|
|
|
|
onloadeddata |
|
|
|
|
|
|
|
|
|
|
|
onloadedmetadata |
|
|
|
|
|
|
|
|
|
|
|
onloadstart |
|
|
|
|
|
|
|
|
|
|
|
onmousedown |
|
|
|
|
|
|
|
|
|
|
|
onmousemove |
|
|
|
|
|
|
|
|
|
|
|
onmouseout |
|
|
|
|
|
|
|
|
|
|
|
onmouseover |
|
|
|
|
|
|
|
|
|
|
|
onmouseup |
|
|
|
|
|
|
|
|
|
|
|
onmousewheel |
|
|
|
|
|
|
|
|
|
|
|
onpause |
|
|
|
|
|
|
|
|
|
|
|
onplay |
|
|
|
|
|
|
|
|
|
|
|
onplaying |
|
|
|
|
|
|
|
|
|
|
|
onprogress |
|
|
|
|
|
|
|
|
|
|
|
onratechange |
|
|
|
|
|
|
|
|
|
|
|
onreadystatechange |
|
|
|
|
|
|
|
|
|
|
|
onscroll |
|
|
|
|
|
|
|
|
|
|
|
onseeked |
|
|
|
|
|
|
|
|
|
|
|
onseeking |
|
|
|
|
|
|
|
|
|
|
|
onselect |
|
|
|
|
|
|
|
|
|
|
|
onshow |
|
|
|
|
|
|
|
|
|
|
|
onstalled |
|
|
|
|
|
|
|
|
|
|
|
onsubmit |
|
|
|
|
|
|
|
|
|
|
|
onsuspend |
|
|
|
|
|
|
|
|
|
|
|
ontimeupdate |
|
|
|
|
|
|
|
|
|
|
|
onvolumechange |
|
|
|
|
|
|
|
|
|
|
|
onwaiting |
|
|
|
|
|
|
|
|
|
|
|
reversed |
|
|
|
|
|
|
|
|
|
|
|
spellcheck |
|
|
|
|
|
|
|
|
|
|
|
start |
|
|
|
|
|
|
|
|
|
|
|
style |
|
|
|
|
|
|
|
|
|
|
|
tabindex |
|
|
|
|
|
|
|
|
|
|
|
title |
|
|
|
|
|
|
|
|
|
|
|
type |
|
|
|
|
|
|
|
|
|
|
|
xml:base |
|
|
|
|
|
|
|
|
|
|
|
xml:id |
|
|
|
|
|
|
|
|
|
|
|
xml:lang |
|
|
|
|
|
|
|
|
|
|
|
xml:space |
|
|
|
|
|
|
|
|
|
|
|
Браузерные стили
Chrome |
ol ol { margin-bottom: 0; margin-top: 0; }
|
ol { -webkit-padding-start: 40px; display: block; list-style-type: decimal; margin: 1em 0 1em 0; }
|
ul ol { margin-bottom: 0; margin-top: 0; }
|
firefox 3.6.3 |
dir ol { margin-bottom: 0; margin-top: 0; }
|
dl ol { margin-bottom: 0; margin-top: 0; }
|
menu ol { margin-bottom: 0; margin-top: 0; }
|
ol ol { margin-bottom: 0; margin-top: 0; }
|
ol { -moz-padding-start: 40px; display: block; list-style-type: decimal; margin: 1em 0; unicode-bidi: embed; }
|
ol:focus { outline: 1px dotted; }
|
ul ol { margin-bottom: 0; margin-top: 0; }
|
ie6, ie7 |
ol { display: block; list-style-type: decimal; margin: 19px auto 19px 30pt; }
|
ie8 |
ol { display: block; list-style-type: decimal; margin: 1em 0; padding: 0 0 0 30pt; }
|
opera 10.53 |
ol { display: block; list-style: decimal; list-style-type: decimal; margin: 16px 0; padding: 0 0 0 40px; }
|
safari 4.0.5 |
ol ol { margin-bottom: 0; margin-top: 0; }
|
ol { -webkit-padding-start: 40px; display: block; list-style-type: decimal; margin: 1em 0 1em 0; }
|
ul ol { margin-bottom: 0; margin-top: 0; }
|