我的意思是插入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?
原文地址:https://www.jb51.cc/html/230390.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。