html教程

定义和用法

<dl> 标签定义一个定义列表。

 

HTML 4.01 与 HTML 5 之间的差异 

无。

 

<dl> 
<dt>Coffee</dt> 
<dd>Black hot drink</dd> 
<dt>Milk</dt> 
<dd>White cold drink</dd> 
</dl>


 

属性

标准属性

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 中事件属性。

 

TIY 实例,定义列表

如何创建定义列表。

<html> 
<body> 
<h2>一个定义列表:</h2> 
<dl> 
<dt>计算机</dt> 
<dd>用来计算的仪器 ... ...</dd> 
<dt>显示器</dt> 
<dd>以视觉方式显示信息的装置 ... ...</dd> 
</dl> 
</body> 
</html>