HTML <b> tag


<p>这是普通文本 - <b>这是粗体文本</b>。</p>

Try it yourself

Browser Support

IE Firefox Chrome Safari Opera

All browsers support <b> tag.

Definition and Usage

<B> bold text labeling requirements.

Differences between HTML 4.01 and HTML5


Tips and Notes

Note: According to the HTML5 specification, in the absence of other suitable labels more appropriate when it should be <b> tag as a last option. HTML5 specification states: You should use <h1> - <h6> to represent the title, use the <em> tag to indicate emphasized text, you should use <strong> labels to indicate important text, you should use <mark> tag represents labeled / highlight the text display.

Tip: You can also use the CSS " font-weight " attribute to set bold text.

Global Properties

<b> tag supports HTML in the global properties .

Event Properties

<b> tag supports HTML in the event properties .