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
.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
完整支持