您的位置:首页 > Web前端 > HTML

HTML冷门标签

2015-10-04 22:36 489 查看

HTML冷门标签

abbr,acronym;

base;

bdi,bdo;

caption

blockquote,cite;

col;

dialog;

figcaption;

keygen.

abbr

标记一个缩写:

The <abbr title="People's Republic of China">PRC</abbr> was founded in 1949.


acronym

标记一个首字母缩写:

<acronym title="World Wide Web">WWW</acronym>


base

标签为页面上的所有链接规定默认地址或默认目标。

<body>
<img src="eg_smile.gif" />
<a href="http://www.w3school.com.cn">W3School</a>
</body>


bdo定义文字方向

<bdo dir="rtl">Here is some text</bdo>


caption 元素定义表格标题。

<table border="1">
<caption>Monthly savings</caption>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>


<em>    把文本定义为强调的内容。
<strong>    把文本定义为语气更强的强调的内容。
<dfn>   定义一个定义项目。
<code>  定义计算机代码文本。
<samp>  定义样本文本。
<kbd>   定义键盘文本。它表示文本是从键盘上键入的。它经常用在与计算机相关的文档或手册中。
<var>   定义变量。您可以将此标签与 <pre> 及 <code> 标签配合使用。
<cite>  定义引用。可使用该标签对参考文献的引用进行定义,比如书籍或杂志的标题。


标签为表格中一个或多个列定义属性值

<table width="100%" border="1">
<col align="left" />
<col align="left" />
<col align="right" />
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>


dialog

标签定义对话框或窗口。

<table border="1">
<tr>
<th>一月 <dialog open>这是打开的对话窗口</dialog></th>
<th>二月</th>
<th>三月</th>
</tr>
<tr>
<td>31</td>
<td>28</td>
<td>31</td>
</tr>
</table>


figcaption 标签定义 figure 元素的标题(caption)。

“figcaption” 元素应该被置于 “figure” 元素的第一个或最后一个子元素的位置。

<figure>
<figcaption>黄浦江上的的卢浦大桥</figcaption>
<img src="shanghai_lupu_bridge.jpg" width="350" height="234" />
</figure>


keygen 标签规定用于表单的密钥对生成器字段。

当提交表单时,私钥存储在本地,公钥发送到服务器。

<form action="demo_keygen.asp" method="get">
Username: <input type="text" name="usr_name" />
Encryption: <keygen name="security" />
<input type="submit" />
</form>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: