" tag can define bold text and achieve a bold font effect; 2. The "" tag will make the font text that needs to be emphasized appear in the browser It is displayed in bold."/>
" tag can define bold text and achieve a bold font effect; 2. The "" tag will make the font text that needs to be emphasized appear in the browser It is displayed in bold.">
Home >Web Front-end >Front-end Q&A >What is the html tag that controls the bold display of fonts? Html tags that control the bold display of fonts: 1. The "" tag can define bold text and achieve a bold font effect; 2. The "" tag will make Font text that needs to be emphasized is displayed in bold in the browser. The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer. Html tags that control font bold display ---"" tag HTML tags that control font bold display ---"" tag## tag is a phrase Tags are important text used to define samples of computer programs and have the function of emphasizing the text. The tag will emphasize text by making the font bold, so the tag will cause the text that needs to be emphasized to be displayed in bold in the browser. Let’s use a simple code example to introduce how to use the tag of HTML to achieve the effect of bold fonts! Rendering: ##We can already see from the picture that the use of the tag in html is very simple, just directly Write the text that needs to be emphasized in the tag to make the text bold! html video tutorial The above is the detailed content of What is the html tag that controls the bold display of fonts?. For more information, please follow other related articles on the PHP Chinese website!What is the html tag that controls the bold display of fonts?
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> <b>标签加粗字体</title>
</head>
<body>
<div>
<p>这是一段测试文字,<b>这里使用b标签来加粗字体</b>
</p>
</div>
</body>
</html>
Rendering:
We can already see from the picture that the second half of the text has been bolded, which can match the first half of the text (Text in bold) for comparison. Here we mainly use the tag in html. The use of the tag in html is very simple. Just write the text that needs to be bolded in the tag!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> <strong>标签加粗字体</title>
</head>
<body>
<div>
<p>这是一段测试文字,<strong>这里使用strong标签来加粗字体</strong>
</p>
</div>
</body>
</html>