HTML <dt> element specifies a term in a description or definition list, and as such must be used inside a <dl> 元素。 It is usually followed by a <dd> element; however, multiple <dt> elements in a row indicate several terms that are all defined by the immediate next <dd> 元素。

The subsequent <dd> ( Description Details ) element provides the definition or other related text associated with the term specified using <dt> .

The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.

内容类别 None.
准许内容 流内容 , but with no <header> , <footer> , sectioning content or heading content descendants.
Tag omission Must have a start tag. The end tag may be omitted if this element is immediately followed by another <dt> <dd> element, or if there is no more content in the parent element.
Permitted parents Before a <dt> <dd> element, inside a <dl> or (in WHATWG HTML) a <div> that is inside a <dl> .
Implicit ARIA role term
Permitted ARIA roles listitem
DOM 接口 HTMLElement Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element.

属性

此元素只包括 全局属性 .

范例

For an example, see the example provided for the <dl> element .

规范

规范 状态 注释
HTML 实时标准
The definition of '<dt>' in that specification.
实时标准
HTML5
The definition of '<dt>' in that specification.
推荐
HTML 4.01 Specification
The definition of '<dt>' in that specification.
推荐

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
dt Chrome 完整支持 Yes Edge 完整支持 12 Firefox 完整支持 1 IE 完整支持 Yes Opera 完整支持 Yes Safari 完整支持 Yes WebView Android 完整支持 Yes Chrome Android 完整支持 Yes Firefox Android 完整支持 4 Opera Android 完整支持 Yes Safari iOS 完整支持 Yes Samsung Internet Android 完整支持 Yes

图例

完整支持

完整支持

另请参阅

元数据

  • 最后修改: