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

HTML tag

HTML tag

Example

Format text in the document:

Computer sample

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support tag.


Tag Definition and Usage Notes

The tag is a phrase tag used to define sample text from a computer program.

**Tip:** We are not against using this tag, but if you use it only to achieve a visual effect, we recommend using CSS, which may produce richer results.

All phrase tags:

tag Description
Rendered as emphasized text.
Defines important text.
Defines a definition term.
Defines computer code text.
Defines sample text.
Defines keyboard text. It indicates that the text was typed on a keyboard. It is often used in computer-related documents or manuals.
Defines a variable. You can use this tag together with
 及  标签配合使用。

Differences between HTML 4.01 and HTML5

none.


Global Attributes

The tag supports HTML Global Attributes.


Event attribute

The tag supports HTML Event Attributes.


Related Articles

HTML Tutorial:HTML Text Formatting