Home > Web Front-end > HTML Tutorial > What is the usage of strong in html

What is the usage of strong in html

coldplay.xixi
Release: 2023-02-17 15:43:56
Original
12415 people have browsed it

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.

What is the usage of strong in html

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>
Copy after login

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>
Copy after login

<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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template