What is the <b> tag in HTML?

The <b> tag in HTML

The <b> tag is used to bold text in an HTML page. The structure of the <b> tag is as follows:

<b>Text Here</b>

The <b> tag does not have any semantic value; therefore, it must be used in cases where the only purpose is to make the text bold. An alternate to the <b> tag is the <strong> tag. The <strong> tag is also used to bold text; however, it results in high semantic value for the enclosed text.

Example usage of <b> tag

The following code provides an example:

In the example above, only the text enclosed in the <b> tag is bold, and the remaining text is not.

Browser Support

Browser Support
Chrome Yes
Firefox Yes
Safari Yes
Edge Yes
Opera Yes

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved