HTML Bold

We use the HTML <b> tag or the HTML <strong> tag to make text bold. For example,

<b>This text is bold.</b>
<br>
<strong>This text is also bold.</strong>

Browser Output

Bold text

HTML <b> vs <strong> Tag

Both <b> and <strong> tags make the text inside them bold and there is no difference in how browsers render these tags.

However, the <strong> tag is a semantic tag that indicates the text content is of strong importance, seriousness, or urgency (for example, Warning! Falling rocks) whereas the <b> tag has no semantic meaning and only makes the text bold.

Hence, it is generally preferred to use the HTML <strong> tag.

Note: You can also use the CSS property font-weight to make the text bold.