Home>Article>Web Front-end> How to set boldness in html

How to set boldness in html

藏色散人
藏色散人 Original
2021-04-09 11:01:08 9346browse

How to set bold in html: First create an HTML sample file; then enter the p tag in the body tag; then enter text in the b tag; finally press f12 to preview and you will see the font with b tag added thick.

How to set boldness in html

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

Create a new HTML document, as shown in the picture

How to set boldness in html

Enter the p tag in the body tag, as shown in the picture

How to set boldness in html

Then enter the b tag in the p tag, as shown in the picture

How to set boldness in html

Then enter the text in the b tag, take Hahaha as an example

How to set boldness in html

Then enter the p tag and hahaha, as shown in the picture

How to set boldness in html

##Press f12 to preview and you can see the font with b tag Bold, the following is without the b tag

How to set boldness in html

[Recommended learning:

HTML video tutorial

The above is the detailed content of How to set boldness in html. 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 are the tags of html Next article:What are the tags of html