HTML <b>Tag


Examples

<p>This is a normal text - <b>this is a bold text</b>.</p>

Try it Yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the <b> tag.


Tag Definition and Usage Instructions

The <b> tag defines bold text.


Differences Between HTML 4.01 and HTML5

None.


Tips and Notes

Note:According to the HTML 5 specification, the <b> tag should be used as a last resort, only when no other markup is more appropriate. The HTML 5 specification states: headings should use<h1> - <h6>tag representation<em>tag representation<strong>tag representation<mark>tag representation.

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


Global Attributes

The <b> tag supportsHTML Global Attributes。


Event Attributes

The <b> tag supportsHTML Event Attributes。

Other Extensions