Why B For Bold Is Valid HTML (But Not Recommended)

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Element of
Learn How Fonts And Web Typography Work In HTML: A Beginner's Guide
What does Why B For Bold Is Valid HTML (But Not Recommended) do?
The <b> element is used to draw attention to enclosed text without implying any added importance or emphasis. Text surrounded by <b> tags is displayed with a bold typeface.
Display
inline
Usage
textual

Code Example

<p>This text is not bold.</p> 
<p><b>This text is bold.</b></p>

This text is not bold.

This text is bold.

<b> vs. <strong>

HTML5 has placed on a strong emphasis on semantic markup, or markup which conveys meaning. The opposite of semantic markup is presentational markup — markup which affects how content is displayed but otherwise carries no particular meaning. Because of this emphasis, the <strong> element is usually preferred over the <b> element when used to strongly emphasize portions of text within a document. However, there are cases when the <strong> element (or another element such as <em> or <mark>) is not semantically appropriate, and the <b> element is the best option.

Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for b

iefirefoxchromeedgesafariopera
AllAllAllAllAllAll