Home  >  Article  >  Web Front-end  >  How to make html font bold

How to make html font bold

藏色散人
藏色散人Original
2021-05-12 11:22:136364browse

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>

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!

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
Previous article:what is css weightNext article:what is css weight