html中<tt><code><kbd><samp><var>什么意思

html-css014

html中<tt><code><kbd><samp><var>什么意思,第1张

<tt>标签呈现类似打字机或者等宽的文本效果。

<tt>标签与 <code>和 <kbd>标签一样,<tt>标签和必需的 </tt>结束标签告诉浏览器,要把其中包含的文本显示为等宽字体。对于那些已经使用了等宽字体的浏览器来说,这个标签在文本的显示上就没有什么特殊效果了。

<code> 定义计算机代码文本。

<samp> 定义样本文本。

<kbd> 定义键盘文本。它表示文本是从键盘上键入的。它经常用在与计算机相关的文档或手册中。

<var> 定义变量。您可以将此标签与 <pre>及 <code>标签配合使用。

参考网址 http://www.w3school.com.cn/h.asp

th table header

tt define list title

<table>

<tr>

<th>姓名</th>

<th>性别</th>

</tr>

<tr>

<td>张三</td>

<td>女</td>

</tr>

</table>

<tt>呈现类似打字机或者等宽的文本效果。不建议使用,可以理解为,没有了,以后html5可能会被取消

HTML元素 - tt

定义

以固定宽度字体显示文本。

Renders text in a fixed-width font.

注释

此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。

此元素是内嵌元素。

此元素需要关闭标签。

The TT element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

This element is an inline element.

This element requires a closing tag.

示例代码

<TT>Here's some plain text.</TT>