How to use b to bold font: First create an HTML sample file; then create the
tag content in the body; then use the tag to bold a piece of text; finally run the Just check the file for effect.
The operating environment of this article: Windows 7 system, HTML5 version, DELL G3 computer
Tags 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.
Example
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>PHP中文网</title> </head> <body> <p>这是普通文本 - <b>这是粗体文本</b>。</p> </body> </html>
Effect:
Recommended study:《 HTML video tutorial》
The above is the detailed content of How to use b to bold font in html. For more information, please follow other related articles on the PHP Chinese website!