In HTML, the strong tag is used to define important text in computer program samples. The text defined by strong can be bolded. The syntax "<strong>Important text"; strong is a phrase Tag, supports html global attributes and html event attributes.
The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.
<strong>Usage of strong in html:
In html, the <strong>
tag is important text used to define samples of computer programs. is a phrase tag. If it is just to achieve visual effects and has no special meaning, it is not recommended to use the <strong> tag, and CSS is generally used instead.
More phrase tags
: Emphasized text.
<strong>: Important text.
: A definition item.
: Computer code text.
: Sample text.
: keyboard text.
: variable.
<strong>Tag attributes and events
<strong>Tag supports html global attributes and html event attributes
Format
<strong>文本</strong>
Example
<!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>
<strong>Related learning recommendations: <strong>html tutorial
The above is the detailed content of What is the usage of strong in html. For more information, please follow other related articles on the PHP Chinese website!