<dt>: The Description Term element - HTML: HyperText Markup Language 编辑

The HTML <dt> element specifies a term in a description or definition list, and as such must be used inside a <dl> element. 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> element.

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

Content categoriesNone.
Permitted contentFlow content, but with no <header>, <footer>, sectioning content or heading content descendants.
Tag omissionMust have a start tag. The end tag may be omitted if this element is immediately followed by another <dt> or a <dd> element, or if there is no more content in the parent element.
Permitted parentsBefore a <dt> or a <dd> element, inside a <dl> or (in WHATWG HTML) a <div> that is inside a <dl>.
Implicit ARIA roleterm
Permitted ARIA roleslistitem
DOM interfaceHTMLElement Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the HTMLSpanElement interface for this element.

Attributes

This element only includes the global attributes.

Example

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

Specifications

SpecificationStatusComment
HTML Living Standard
The definition of '<dt>' in that specification.
Living Standard
HTML5
The definition of '<dt>' in that specification.
Recommendation
HTML 4.01 Specification
The definition of '<dt>' in that specification.
Recommendation

Browser compatibility

BCD tables only load in the browser

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:82 次

字数:5808

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文