HTML Tags
HTML <b> Tag
The <b> tag renders text in bold to draw visual attention, such as keywords or product names, without implying extra importance. For meaningful emphasis, use <strong> instead.
The <b> Tag
The <b> element represents text that should be stylistically bold, drawing the reader's attention without conveying any special importance or emphasis. Examples include keywords, product names in a review, or the lead sentence of a paragraph.
It is an inline element. Semantically it carries no extra meaning, which is the key difference from <strong>, an element that indicates strong importance and is announced accordingly by screen readers.
Syntax
<b>Bold text</b>Example
<!DOCTYPE html>
<html>
<body>
<p>
The <b>Model X Pro</b> keyboard has <b>hot-swappable</b> switches.
</p>
<p>The bold words are highlighted stylistically, not as importance.</p>
</body>
</html>More Examples
<!DOCTYPE html>
<html>
<body>
<p><b>Note:</b> this uses b for a visual lead-in.</p>
<p><strong>Warning:</strong> this uses strong for real importance.</p>
</body>
</html>Use <b> only when no other element is more appropriate. Prefer <strong> for importance, <em> for emphasis, <mark> for highlighting, and headings for titles.
Key Takeaways
- <b> makes text bold for visual attention only.
- It carries no semantic importance.
- Use <strong> when the text is genuinely important.
- It is an inline element.
- Reach for more meaningful tags like <em> or <mark> when they fit.
