HTML <b> tag

Updated: 08/02/2020 by Computer Hope
HTML bold tag

When writing in HTML, the <b> tag is an inline element that makes text bold. It is useful when you want to create definitions or make a certain word or phrase stand out. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Example code

<p>Use the &lt;b&gt; tag to create <b>bold text</b> on your pages.</p>

The above code, rendered in a web browser, looks like this:

Use the <b> tag to create bold text on your pages.


Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <b> tag does not have any unique attributes, it does utilize all of the standard attributes.


Edge Internet Explorer Firefox Safari Opera Chrome
All versions All versions All versions All versions All versions All versions

Browser, Compatibility, HTML em tag, HTML strong tag, Web design terms