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.
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:
## Labels specify bold text. Differences between HTML 4.01 and HTML5None. Tips and NotesNote: 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: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!