This wiki has been archived and is now read-only.


From HTML Wiki
Jump to: navigation, search


The <b> element represents a span of text to be stylistically offset from the normal prose without conveying any extra importance.


  • Some examples of cases:
    • key words in a document abstract
    • product names in a review
    • ... other spans of text whose typical typographic presentation is boldened.
  • The b element should be used as a last resort when no other element is more appropriate. In particular, headings should use the h1 to h6 elements, stress emphasis should use the em element, importance should be denoted with the strong element, and text marked or highlighted should use the mark element. [Example of bad usage]

HTML Attributes

See global attributes.


Example A

[try it]

<p>The <b>frobonitor</b> and <b>barbinator</b> components are fried.</p>

Example of bad usage

The b element also isn't intended to convey importance; for that purpose, the strong element is more appropriate.

<!-- do not copy this example, it is an example of bad usage! -->
<p><b>Warning.</b> This dungeon is dangerous.</p>

Good usage:

<p><strong>Warning.</strong> This dungeon is dangerous.</p>

HTML Reference

The HTML5 specification defines the <b> element in 4.6.17 The b element.