Curriculum ▸ HTML Zero → Mastery ▸ Lesson 17: Bold Text (<b>) Foundations

Lesson 17 — Bold Text <b>

Learning Goals

Part 1 — What is <b>?

The <b> element renders text in a boldface style. It is mainly a stylistic element with no added meaning or importance.

Compare: <strong> also makes text bold, but adds semantic meaning (strong importance).

Part 2 — Example

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

Result: Both look bold, but <strong> carries extra importance for screen readers and search engines.

Part 3 — Best Practices

Part 4 — Common Mistakes

Quick Quiz

  1. What does <b> do?
  2. What’s the difference between <b> and <strong>?
  3. Should you use <b> to mark urgent warnings?
Sample Answers
  • It makes text bold visually.
  • <b> is stylistic; <strong> conveys importance.
  • No — use <strong> for meaningful emphasis.

Mini Project — Bold Highlights

Create a product description and bold the **key features** with <b>. Then create another version using <strong> for the most important feature, and compare accessibility.

Lesson 17 Dictionary

<b> (Bold)
A stylistic element that makes text bold without adding importance.
<strong>
Marks text as important, both visually (bold) and semantically for accessibility/SEO.