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

How to use html strong tag

silencement
silencementOriginal
2019-05-27 11:17:304936browse

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">&lt;strong&gt;文本&lt;/strong&gt;</pre></p>Example<p><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; strong&gt;标签笔记&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>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!

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