ul
Используется для создания маркированного списка, в котором каждый элемент начинается с тега li. Если к ul применяются стили, то теги li их наследуют.
Пример:
| 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, spellcheck, 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 | |||||||||||
| spellcheck | |||||||||||
| style | |||||||||||
| tabindex | |||||||||||
| title | |||||||||||
| type | |||||||||||
| xml:base | |||||||||||
| xml:id | |||||||||||
| xml:lang | |||||||||||
| xml:space |
| Chrome |
ol ol ul { list-style-type: square; } |
|---|---|
ol ul ul { list-style-type: square; } |
|
ol ul { list-style-type: circle; margin-bottom: 0; margin-top: 0; } |
|
ul ol ul { list-style-type: square; } |
|
ul ul ul { list-style-type: square; } |
|
ul ul { list-style-type: circle; margin-bottom: 0; margin-top: 0; } |
|
ul { -webkit-padding-start: 40px; display: block; list-style-type: disc; margin: 1em 0 1em 0; } |
|
| firefox 3.6.3 |
dir dir ul { list-style-type: square; } |
dir menu ul { list-style-type: square; } |
|
dir ol ul { list-style-type: square; } |
|
dir ul ul { list-style-type: square; } |
|
dir ul { list-style-type: circle; margin-bottom: 0; margin-top: 0; } |
|
dl ul { margin-bottom: 0; margin-top: 0; } |
|
menu dir ul { list-style-type: square; } |
|
menu menu ul { list-style-type: square; } |
|
menu ol ul { list-style-type: square; } |
|
menu ul ul { list-style-type: square; } |
|
menu ul { list-style-type: circle; margin-bottom: 0; margin-top: 0; } |
|
ol dir ul { list-style-type: square; } |
|
ol menu ul { list-style-type: square; } |
|
ol ol ul { list-style-type: square; } |
|
ol ul ul { list-style-type: square; } |
|
ol ul { list-style-type: circle; margin-bottom: 0; margin-top: 0; } |
|
ul dir ul { list-style-type: square; } |
|
ul menu ul { list-style-type: square; } |
|
ul ol ul { list-style-type: square; } |
|
ul ul ul { list-style-type: square; } |
|
ul ul { list-style-type: circle; margin-bottom: 0; margin-top: 0; } |
|
ul { -moz-padding-start: 40px; display: block; list-style-type: disc; margin: 1em 0; unicode-bidi: embed; } |
|
ul:focus { outline: 1px dotted; } |
|
| ie6, ie7 |
ul { display: block; margin: 19px auto 19px 30pt; } |
| ie8 |
ul { display: block; margin: 1em 0; padding: 0 0 0 30pt; } |
| opera 10.53 |
ul { display: block; margin: 16px 0; padding: 0 0 0 40px; } |
| safari 4.0.5 |
ol ol ul { list-style-type: square; } |
ol ul ul { list-style-type: square; } |
|
ol ul { list-style-type: circle; margin-bottom: 0; margin-top: 0; } |
|
ul ol ul { list-style-type: square; } |
|
ul ul ul { list-style-type: square; } |
|
ul ul { list-style-type: circle; margin-bottom: 0; margin-top: 0; } |
|
ul { -webkit-padding-start: 40px; display: block; list-style-type: disc; margin: 1em 0 1em 0; } |