Home > Article > Web Front-end > How to bold text in html
htmlHow to bold text: First create a new HTML document, enter the p tag in the body tag; then enter the b tag in the p tag, and enter the text in the b tag.
The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer. This method is suitable for all brands of computers.
htmlHow to bold text:
1. Create a new HTML document, as shown in the figure
2. Enter the p tag in the body tag, as shown in the picture
3. Then enter the b tag in the p tag, as shown in the picture
4. Then enter the text in the b tag, taking hahaha as an example
##5. Then enter the p tag and hahaha, As shown in the picture 6. Press f12 to preview and you can see that the font with b tag is bolded. The following is the font without b tagRelated learning recommendations: html video tutorial
The above is the detailed content of How to bold text in html. For more information, please follow other related articles on the PHP Chinese website!