Home  >  Article  >  Web Front-end  >  How to use b to bold font in html

How to use b to bold font in html

藏色散人
藏色散人Original
2021-03-26 14:47:353507browse

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.

How to use b to bold font in html

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




    
    PHP中文网


这是普通文本 - 这是粗体文本

Effect:

How to use b to bold font in html

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!

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