<b>
Published Mar 15, 2022Updated Jul 1, 2022
Contribute to Docs
The <b>
element is used to draw the reader’s attention to the marked text without assigning any additional importance to it. This is typically done by making the text bold.
Note: Original legacy usage of this tag is just to set text as bold, but it should now be avoided for solely styling text. Best practice to use CSS for text formatting. The CSS element used for making boldface text is font-weight
.
Syntax
<b><!-- Text to draw attention to here --></b>
The <b>
element should only contain text or other tags meant for text content.
Example
<p>Please pay attention to <b>this</b> word.</p>
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.