" 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?

What is the html tag that controls the bold display of fonts?

青灯夜游
青灯夜游Original
2021-06-08 17:07:0317835browse

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.

What is the html tag that controls the bold display of fonts?

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>

Rendering:

What is the html tag that controls the bold display of fonts?

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!

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! What is the html tag that controls the bold display of fonts?

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!

Statement:
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