HTML <b> tag

Updated: 10/11/2017 by Computer Hope

HTML bold tagWhen 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 <b> tag to create <b>bold text</b> on your pages.</p>

Example result

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

Attributes

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.

Compatibility

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

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