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?

青灯夜游
Release: 2023-01-06 11:16:54
Original
17836 people have browsed it

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

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

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!

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