HTML <b> tag
Updated: 09/15/2024 by Computer Hope
When writing in HTML (HyperText Markup Language), 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, and related attributes and browser compatibility.
Example code
<p>Use the <b> 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.
Attributes
All HTML tags support standard attributes that define the settings of an HTML element. Unlike other HTML tags, the <b> tag has no unique attributes.
Compatibility
Edge | Internet Explorer | Firefox | Safari | Opera | Chrome |
---|---|---|---|---|---|
All versions | All versions | All versions | All versions | All versions | All versions |
Bold, Browser, Compatibility, Container tag, Format, HTML <em> tag, HTML <strong> tag, Semantics, Web design terms