How to use html samp tag

silencement
Release: 2019-05-27 13:23:35
Original
5200 people have browsed it

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><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false">&lt;samp&gt;文本&lt;/samp&gt;</pre><div class="contentsignin">Copy after login</div></div></p><p>Instance<strong></strong><br/><div class="code" style="position:relative; padding:0px; margin:0px;"><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><div class="contentsignin">Copy after login</div></div></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!

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