##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"><samp>文本</samp></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"><!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>html< samp>标签笔记_PHP笔记</title>
</head>
<body>
<em>强调文本</em><br>
<strong>加粗文本</strong><br>
<dfn>定义项目</dfn><br>
<code>一段电脑代码</code><br>
<samp>计算机样本</samp><br>
<kbd>键盘输入</kbd><br>
<var>变量</var>
</body>
</html></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!