定义和用法
<dl> 标签定义了定义列表(definition list)。
<dl> 标签用于结合 <dt> ( 标签定义一个描述列表的项目/名字)和 <dd> (标签被用来对一个描述列表中的项目/名字进行描述)。
You can use this element to represent key-value pairs semantically and couple it with other elements like <details>
and <aside>
to give context to this information.
Where do you see yourself using <dl>
in HTML5? Perhaps details about a downloadable file? Or are you going to give your more technical blog articles a glossary? Let us know in the comments!
- 单条/多条术语 与 单条/多条描述
- 在<div>元素中包装名称值组
参考链接: