Home >Web Front-end >HTML Tutorial >How to use html strong tag
## Tag definition and usage
In HTML, the tag is an important sample used to define computer programs The text is a phrase tag. If it is just to achieve visual effects and has no special meaning, it is not recommended to use the tag, and CSS is generally used instead.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>
<strong>Tag attributes and events<p></p>
<strong>Tag supports html global attributes and html event attributes<p></p>Format<p><pre class="brush:html;toolbar:false"><strong>文本</strong></pre></p>Example<p><br><pre class="brush:html;toolbar:false"><!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>html< strong>标签笔记</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></p>Running results:<p></p>
<p><img src="https://img.php.cn/upload/image/918/459/899/1558927007993456.png" title="1558927007993456.png" alt="How to use html strong tag"></p></strong></strong></var></kbd></samp>
The above is the detailed content of How to use html strong tag. For more information, please follow other related articles on the PHP Chinese website!