HTML <dfn>标签
HTML<dfn>标签作用
HTML <dfn>标签也称为HTML定义标签。它用于表示在HTML文档中的定义短语或句子的上下文中定义的术语。定义实例术语通常是文档中的第一术语。
如果<dfn>元素中包含一个术语,则浏览器将理解附近的文本是该术语的定义。
语法
<dfn>Content......... </dfn>
以下是有关HTML <dfn>标签的一些规范
显示 |
内联 |
开始标签/结束标签 |
开始标签和结束标签 |
用法 |
文字 |
示例
<!DOCTYPE html>
<html>
<head>
<title>Dfn tag</title>
</head>
<body>
<h2>Example of dfn Tag</h2>
<p><dfn>HTML</dfn> A markup language for Web designing</p>
</body>
</html>
输出:
使用标题属性:
<!DOCTYPE html>
<html>
<head>
<title> Dfn tag</title>
</head>
<body>
<h2>Example of dfn Tag</h2>
<p> <dfn title="Transmission control protocol">TCP</dfn> is one of the main protocol of Internet protocols, used to interconnect network devices over the Internet</p>
</body>
</html>
输出:
属性
标签专用属性
属性 |
值 |
说明 |
title |
|
它指定了该术语的定义,并显示了何时将鼠标悬停在该术语上。 |
全局属性
HTML <dfn>标签支持HTML中的全局属性
事件属性
HTML <dfn>标记支持HTML中的事件属性。
支持浏览器