Tag b

The b tag is used to bold text without adding any extra importance or meaning. It makes the text visually stand out, but unlike strong, it does not imply emphasis or urgency.


✅ Syntax:

<b>This text is bold</b>

📌 Output in browser:

This text is bold


🆚 Difference between <b> and <strong>

TagAppearanceSemantic Meaning
<b>BoldNo added importance
<strong>BoldIndicates importance

Example:

<p><b>Note:</b> This is styled bold only.</p>
<p><strong>Warning:</strong> This is both bold and important.</p>

🧠 When to Use <b>?

Use <b> when you want to make something stand out visually, but it’s not semantically important. For example:

  • Product names
  • Keywords
  • Labels in UI
  • Phone numbers

If you want to add meaningful emphasis, prefer <strong> instead.