Home  >  Article  >  Web Front-end  >  How to use html samp tag

How to use html samp tag

silencement
silencementOriginal
2019-05-27 13:23:355191browse

How to use html samp tag

##Definition and usage of tag in html

In html, the tag is a phrase tag, which is used Sample text to define a computer program. The use of the tag generally has a certain meaning. It is not recommended to use the tag for display effects. The display effect is generally controlled by CSS.

More phrase tags

: Emphasized text.

: Important text.

: A definition item.

: Computer code text. <p></p> <samp>: Sample text. <p></p> <kbd>: keyboard text. <p></p> <var>: variable. <p></p> <p>html <samp>Tag attribute<strong></strong></samp></p> <samp>Tag supports html global attributes and html event attributes<p></p> <p>Format<strong></strong><br><pre class="brush:html;toolbar:false">&lt;samp&gt;文本&lt;/samp&gt;</pre></p> <p>Instance<strong></strong><br><pre class="brush:html;toolbar:false">&lt;!doctype html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot;&gt; &lt;title&gt;html&lt; samp&gt;标签笔记_PHP笔记&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;em&gt;强调文本&lt;/em&gt;&lt;br&gt; &lt;strong&gt;加粗文本&lt;/strong&gt;&lt;br&gt; &lt;dfn&gt;定义项目&lt;/dfn&gt;&lt;br&gt; &lt;code&gt;一段电脑代码&lt;/code&gt;&lt;br&gt; &lt;samp&gt;计算机样本&lt;/samp&gt;&lt;br&gt; &lt;kbd&gt;键盘输入&lt;/kbd&gt;&lt;br&gt; &lt;var&gt;变量&lt;/var&gt; &lt;/body&gt; &lt;/html&gt;</pre></p> <p>Run result<strong><br></strong></p> <p><img src="https://img.php.cn/upload/image/986/374/347/1558934541170146.png" title="1558934541170146.png" alt="How to use html samp tag"></p></samp></var></kbd></samp>

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

Statement:
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
Previous article:How to use html tr tagNext article:How to use html tr tag

Related articles

See more