Course contentsShow
← Web Development
Lesson 1008 of 2,98218. Accessibility FundamentalsFree lesson

Strong vs Em vs B vs I

Understand the semantic meaning behind emphasis elements and when visual styling requires alternatives.

Strong vs Em vs B vs I

What you'll learn: You'll discover when to use semantic emphasis elements versus purely visual styling elements—and why it matters for accessibility.

The Semantic Difference

HTML gives us four elements that often look similar but carry very different meanings:

  • <strong> — Indicates strong importance or urgency. Screen readers may announce this with emphasis.
  • <em> — Indicates stress emphasis, like stressing a word when speaking. Screen readers typically change vocal tone.
  • <b> — Provides bold styling without semantic meaning. Used for keywords or product names that don't need emphasis.
  • <i> — Provides italic styling without semantic meaning. Used for technical terms, foreign words, or thoughts.

When Visual Styling Requires Alternatives

Think of it like punctuation versus font choices. An exclamation mark changes meaning; choosing a fancy font changes appearance.

If you write "This is important," you should use <strong> because you're communicating importance—assistive technology needs to know that. If you're just styling a brand name in bold for visual consistency, <b> is appropriate since there's no special meaning.

Similarly, <em> changes how a sentence should be understood: "I love pizza" versus "I love pizza" have different meanings. But if you're italicizing a book title purely by convention, <i> works better since you're not adding vocal emphasis.

Making the Right Choice

Ask yourself: "Does this text have special meaning, or am I just applying visual style?"

  • Meaning → <strong> or <em>
  • Visual convention → <b> or <i>

Screen reader users rely on semantic elements to understand what's important or emphasized. Using the right element ensures everyone gets the same information, not just sighted users.

Key Takeaway: Use <strong> and <em> when the text carries semantic importance or emphasis; use <b> and <i> when you only need visual styling without changing meaning for assistive technologies.