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
## tag definition bold text. Below we use a simple code example to introduce how to use the tag of html to achieve the effect of bold fonts!<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> <b>标签加粗字体</title> </head> <body> <div> <p>这是一段测试文字,<b>这里使用b标签来加粗字体</b> </p> </div> </body> </html>
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!
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> <strong>标签加粗字体</title> </head> <body> <div> <p>这是一段测试文字,<strong>这里使用strong标签来加粗字体</strong> </p> </div> </body> </html>
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!
Recommended tutorial: "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!