HTML <b> tag
Updated: 08/02/2020 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 |
Browser, Compatibility, Container tag, HTML em tag, HTML strong tag, Web design terms