How to make html font bold

藏色散人
Release: 2023-01-06 11:12:28
Original
6268 people have browsed it

How to bold the font in html: First create an HTML sample file; then create a normal text through the p tag; finally use the tag to bold the text.

How to make html font bold

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

How to make html font bold?

The code example is as follows:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title></title> 
</head>
<body>

<p>这是一个普通的文本- <b>这是一个加粗文本</b>。</p>

</body>
</html>
Copy after login

Effect:

How to make html font bold

## Labels specify bold text.

Differences between HTML 4.01 and HTML5

None.

Tips and Notes

Note: According to the HTML5 specification, the tag should be used as a last resort when no other suitable tag is more suitable. HTML5 specification states:

-

should be used to represent titles, tags should be used to represent emphasized text, tags should be used to represent important text, and tags should be used to represent annotated/highlighted text.

Tip: You can also use the CSS "font-weight" property to set bold text.

Recommended learning: "

html video tutorial"

The above is the detailed content of How to make html font bold. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!