<b> HTML Tag
- Element of
- Fonts and Web Typography
- What does
<b> HTML Tag
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.
Browser Support for b
All | All | All | All | All | All |