阅读(1894)

HTML5 <ul> 标签

最后一次修改 2017年08月02日

定义和用法

<ul> 标签定义无序列表。

HTML 4.01 与 HTML 5 之间的差异

在 HTML 4.01 中,ul 元素的 "compact" 和 "type" 属性是不被赞成使用的。在 HTML 5 中,不再支持这两个属性。

提示和注释

提示:请使用 CSS 来定义列表的类型。

例子

<ul>

   <li>Coffee</li>

   <li>Tea</li></ul>

属性

标准属性

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, 

lang, ref, registrationmark, tabindex, template, title

如需完整的描述,请访问 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

如需完整的描述,请访问 HTML 5 中事件属性。