html – 我可以把任何东西放在DL / DT / DD?

我可以像无序/有序列表一样使用定义列表吗?

我的意思是插入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?

相关文章

vue阻止冒泡事件 阻止点击事件的执行 &lt;div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些