<DL>稱為定義清單標(biāo)記。
<DT> 用以標(biāo)示定義條目,<DD> 則用以標(biāo)示定義內(nèi)容。
所謂定義清單就是一種分二層的項(xiàng)目清單,其不故符號(hào)及數(shù)目。
三個(gè)標(biāo)記都沒有常用的參數(shù)。而 <DT> <DD> 可以獨(dú)立使用,只是一些舊的瀏覽器并不支
援,如 IE 3.0。常用的如 <DD> 標(biāo)記可用以制造段落第一個(gè)字前面的空白。
例子:
原始碼 |
<dl>
<dt>How to use Definition
List
<dd>First, you should not
place paragraph tag right after or before a list structure or
between the items of a list. In cerntain contexts, use of extra
paragraph tags should always be avoided, when you realize this
concept, it is quit easy to write a HTML.
<dt>Other things to know
<dd>We usually put only ONE
Definition tag following the Definition Term tag, more than
one DD tag is not recommanded. Besides, unlike Definition List
is a nonempty tag, both Definition Term and Definition Description
are empty tags.
</dl> |
顯示結(jié)果 |
- How to use Definition List
- First, you should not place paragraph tag right
after or before a list structure or between the items of
a list. In cerntain contexts, use of extra paragraph tags
should always be avoided, when you realize this concept,
it is quit easy to write a HTML.
- Other things to know
- We usually put only ONE Definition tag following
the Definition Term tag, more than one DD tag is not recommanded.
Besides, unlike Definition List is a nonempty tag, both
Definition Term and Definition Description are empty tags.
|
|