Skip to content

06. b and strong Tags

The <b> and <strong> tags both create bold text, but they have different semantic meanings. Understanding when to use each is important for creating accessible, semantic HTML that properly conveys meaning to both users and assistive technologies.

The <b> tag is a presentational element that makes text bold without adding semantic meaning.

<p>This is <b>bold text</b> using the b tag.</p>

Use <b> for:

  • Styling text bold without semantic importance
  • Keywords in summaries
  • Product names in reviews
  • Drawing attention without emphasis
<p>Product: <b>SuperWidget</b> - $99.99</p>

The <strong> tag indicates that content is important or should be emphasized, and renders as bold.

<p>This is <strong>important text</strong> using the strong tag.</p>

Use <strong> for:

  • Important content
  • Critical warnings
  • Key information
  • Content that should be emphasized
<p><strong>Warning:</strong> Do not proceed without reading the instructions.</p>
  • <b>: No semantic meaning, purely presentational
  • <strong>: Indicates importance, semantic meaning
  • <b>: Screen readers don’t emphasize it
  • <strong>: Screen readers emphasize it

Both render as bold, but serve different purposes.

<!-- Good: Semantic emphasis -->
<p><strong>Important:</strong> Please read this carefully.</p>
<!-- Avoid: Using b for importance -->
<p><b>Important:</b> Please read this carefully.</p>
<!-- Good: Styling without importance -->
<p>Product: <b>Widget Pro</b></p>