Home > Web Front-end > Front-end Q&A > How to use html code tag

How to use html code tag

藏色散人
Release: 2019-05-26 11:33:35
Original
3989 people have browsed it

The

html code tag is a phrase tag used to define computer code text. All mainstream browsers support the tag. The tag supports HTML global attributes and HTML event attributes.

How to use html code tag

#How to use the html code tag?

Tag definition and usage instructions

tag is a phrase tag used to define computer code text. All major browsers support the tag.

Tips: We do not object to the use of this tag, but if you only use this tag to achieve a certain visual effect, we recommend that you use CSS, which may achieve richer Effect.

All phrase tags:

<em>呈现为被强调的文本。
<strong>定义重要的文本。
<dfn>定义一个定义项目。
<code>定义计算机代码文本。
<samp>定义样本文本。
<kbd>定义键盘文本。它表示文本是从键盘上键入的。它经常用在与计算机相关的文档或手册中。
<var>定义变量。您可以将此标签与 <pre class="brush:php;toolbar:false"> 及 <code> 标签配合使用。
Copy after login

Differences between HTML 4.01 and HTML5: None.

Global attributes

The tag supports HTML global attributes.

Event attributes

tag supports HTML event attributes.

HTML tag example

Formatting text in a document:

<code>一段电脑代码</code>
Copy after login

The above is the detailed content of How to use html code tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template