HTML <dl> 標籤
定義和用法
The <dl>
tag defines a description list. (<dl>
標籤定義一個描述列表。)
The <dl>
tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name). (<dl>
標籤與 <dt>
(定義術語/名稱) 和 <dd>
(描述每個術語/名稱) 結合使用。)
瀏覽器支援
元素 | |||||
---|---|---|---|---|---|
<dl> | 是 | 是 | 是 | 是 | 是 |
全域性屬性
The <dl>
tag also supports the Global Attributes in HTML. (<dl>
標籤還支援 HTML 中的 全域性屬性。)
事件屬性
The <dl>
tag also supports the Event Attributes in HTML. (<dl>
標籤還支援 HTML 中的 事件屬性。)
相關頁面
HTML 教程:HTML 列表
HTML DOM reference: DList Object (HTML DOM 參考:DList 物件)
預設 CSS 設定
Most browsers will display the <dl>
element with the following default values (大多數瀏覽器會顯示 <dl>
元素,並帶有以下預設值:)
示例
dl {
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
}
自己動手試一試 »