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.


<!-- Text to draw attention to here -->

The <b> element should only contain text or other tags meant for text content.


<p>Please pay attention to <b>this</b> word.</p>

All contributors

Looking to contribute?

Learn HTML on Codecademy