<strong>


HTML <strong> tag

Instance

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>php中文网(php.cn)</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>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

All major browsers support< strong> tag.


Tag definition and usage instructions

<strong> A tag is a phrase tag that is used to define important text for a sample of a computer program.

Tips: We do not object to the use of this tag, but if you only use this tag to achieve a certain visual effect, we recommend that you use CSS, which may achieve richer Effect.

All phrase tags:

##tagdescription<em> is rendered as highlighted text. <strong>Define important text. <dfn>Define a definition item. <code>Define computer code text. <samp>Define sample text. <kbd>Define keyboard text. It indicates that the text was typed from the keyboard. It is often used in computer-related documentation or manuals. <var>Define variables. You can use this tag with the <pre> and <code> tags.


Differences between HTML 4.01 and HTML5

In HTML 4.01, the <strong> tag definition is bolded Emphasized text. In HTML 5, the <strong> tag defines important text.


Global attributes

<strong> tag supports HTML global attributes.


Event attributes

<strong> tag supports HTML event attributes.


Related Articles

HTML Tutorial: HTML Text Formatting