Movatterモバイル変換


[0]ホーム

URL:


  1. 面向开发者的 Web 技术
  2. HTML(超文本标记语言)
  3. HTML 参考
  4. HTML 元素参考
  5. <dfn>

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in EnglishAlways switch to English

<dfn>

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

摘要

HTML 定义元素 (<dfn>) 表示术语的一个定义。

备注:<dfn> 元素标记了被定义的术语;术语定义应当在<p>,<section>或定义列表 (通常是<dt>,<dd> 对) 中给出。

  • 被定义术语的值由下列规则确定:
    1. 如果<dfn> 元素有一个title 属性,那么该术语的值就是该属性的值。
    2. 否则,如果它仅包含一个<abbr> 元素,该元素拥有title 属性,那么该术语的值就是该属性的值。
    3. 否则,<dfn> 元素的文本内容就是该术语的值。
内容分类Flow content,phrasing content, palpable content.
允许的内容Phrasing content, but no<dfn> element must be a descendant.
标签省略不允许,开始标签和结束标签都不能省略。
允许的父元素Any element that acceptsphrasing content.
DOM 接口HTMLElement

属性

该元素包括全局属性

在 HTML5 中,title 属性拥有特殊含义,见上文。

示例

下列示例是合法的 HTML5。

html
<!-- Define "The Internet" --><p>  <dfn>The Internet</dfn> is a global system of interconnected  networks that use the Internet Protocol Suite (TCP/IP) to serve billions of  users worldwide.</p>

在同一文档的后面:

html
<dl>  <!-- Define "World-Wide Web" and reference definition for "the Internet" -->  <dt>    <dfn>      <abbr title="World-Wide Web">WWW</abbr>    </dfn>  </dt>  <dd>    The World-Wide Web (WWW) is a system of interlinked hypertext documents    accessed on <a href="#def-internet">the Internet</a>.  </dd></dl>

结果

规范

Specification
HTML
# the-dfn-element

浏览器兼容性

相关链接

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp