我可以像无序/有序列表一样使用定义列表吗?
我的意思是插入DIVs任何我想要的DT或DD内容?
<dl> <dt> ... </dt> <dd> ... </dd> </dl>
任何浏览器或搜索引擎都抱怨?
解决方法
根据意见更新答案:
这最初是在2011年针对HTML 4回答的,但HTML5的答案是不同的:
dt
Flow content,but with no header,footer,sectioning content,or heading content descendants.
dd
Flow content.
> dt element reference在W3C
> dd element reference在W3C
原来的答案:
DT元素应包含inline content.
DD元素应该包含block-level content.
Definition lists vary only slightly
from other types of lists in that list
items consist of two parts: a term and
a description. The term is given by
the DT element and is restricted to
inline content. The description is
given with a DD element that contains
block-level content.Source: 07004
这个问题也是一个有趣的阅读:Why use definition lists (DL,DD,DT) tags for HTML forms instead of tables?