description & Usage
The <b> tag is used to make text bold.
This tag has no effect on marking up text as "important".
tag | description |
---|---|
<h1> - <h6> | To mark up main headings |
<em> |
To emphasize text italic style equal to <strong> |
<strong> |
To mark up important text bold style equal to <em> |
<mark> |
To mark up important text highlight style less than <em> |
<b> |
To mark up text bold style unimportant |
Notes
Note: In the comparison between HTML tags <b> and <strong>:
- Both make the text bold.
- The <b> tag does not imply any importance or significance of the text compared to a normal text.
- The <strong> tag implies that the text has strong importance.
- Note: If you are optimizing content for search engines like Google or Bing, use the <strong> tag to indicate that the word is important when optimizing.
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<b> |
Global Attributes
The <b> tag supports the HTML Global Attributes.
Event Attributes
The <b> tag supports the HTML Event Attributes.
Default CSS
Most browsers will display the <b> tag with the following default style: