Why B For Bold Is Valid HTML
Element ofLearn How Fonts And Web Typography Work In HTML: A Beginner’s GuideWhat 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.DisplayinlineUsagetextual
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.
Browser Support for b
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| All | All | All | All | All | All |





