Home > Article > Web Front-end > How to set boldness in html
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.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
Create a new HTML document, as shown in the picture
Enter the p tag in the body tag, as shown in the picture
Then enter the b tag in the p tag, as shown in the picture
Then enter the text in the b tag, take Hahaha as an example
Then enter the p tag and hahaha, as shown in the picture
##Press f12 to preview and you can see the font with b tag Bold, the following is without the b tag [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!