Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML 标签

实例

对文档中的文本进行格式化:

一段电脑代码 print("Hello World")

Try it »


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support 标签。


标签定义及使用说明

标签是一个短语标签,用来定义计算机代码文本。

**提示:**我们并不反对使用这个标签,但是如果您只是为了达到某种视觉效果而使用这个标签的话,我们建议您使用 CSS ,这样可能会取得更丰富的效果。

所有短语标签:

标签 Description
呈现为被强调的文本。
定义重要的文本。
定义一个定义项目。
Defines computer code text.
Defines sample text.
Defines keyboard text. It indicates text typed from the keyboard and is often used in documents or manuals related to computers.
Defines a variable. You can use this tag with
 及  标签配合使用。

Differences between HTML 4.01 and HTML5

None.


Global Attributes

标签支持 HTML 的Global Attributes。


事件属性

标签支持 HTML 的事件属性。


相关文章

HTML 教程:HTML 文本格式化