# Meaning vs Appearance

> Four elements make text bold or italic, but two of them carry semantic weight and two do not. Picking the right one changes what you tell the browser, screen readers, and search engines.

Subject: HTML | Lesson 10 of 42 | 5 min read
Interactive lesson: https://codewithanimation.in/html/strong-em-vs-b-i
Previous: [Description & Nested Lists](https://codewithanimation.in/html/description-and-nested-lists.md) | Next: [mark, small, sub & sup](https://codewithanimation.in/html/mark-small-sub-sup.md)

## What they are

`<strong>` marks text as strongly important, serious, or urgent. `<em>` marks a word that carries spoken stress, the kind that shifts meaning depending on which word you emphasize. Both are semantic: they tell the browser that the word matters in a specific way, not just that it should look different.

`<b>` draws attention to text without implying importance, typically for a keyword in a summary, a product name, or a lead sentence where convention calls for bold. `<i>` marks text in an alternate voice or mood: a technical term being introduced, a foreign phrase, a character's inner thought, or a ship name. Neither `<b>` nor `<i>` add semantic weight. They are typographic signals, not meaning signals.

## Why it matters

Screen readers can announce `<strong>` with added emphasis and may stress `<em>` during speech synthesis. When you use `<b>` for something that is actually urgent, the visual result looks the same, but the machine signal is absent. A listener who cannot see bold text misses the importance entirely.

The distinction also sharpens your own thinking. If you catch yourself reaching for `<b>` because something is important, you probably want `<strong>`. If you reach for `<i>` because something sounds dramatic, you probably want `<em>`. The tags make the reason explicit.

## How it works

Use `<strong>` for warnings, critical instructions, or any word where the importance is genuinely part of the content. Use `<em>` for the word in a sentence that a speaker would stress aloud. The stress test works perfectly: say the sentence out loud and notice which word you would naturally lift your voice on. That word gets `<em>`.

A subtle thing about `<em>`: stressing different words in the same sentence produces different meanings. `I never said <em>she</em> took it` implies someone else said it. `I <em>never</em> said she took it` is a flat denial. The markup encodes which reading is intended.

Use `<b>` for key terms, the first use of a technical word in prose, lead-in text by convention, or product names that are bold by style guide. Use `<i>` for technical terms when you introduce them, for titles of short works, for foreign phrases, or for a character thinking to themselves. When you only want the visual style with no meaning attached, use CSS `font-weight: bold` or `font-style: italic` directly.

## Common mistake: Using <b> or <i> when the meaning is actually important

The most common mistake is bolding a warning with `<b>` because it looks the same as `<strong>`. It does not communicate the same thing. If a user removes your CSS, or if an assistive tool scans the page for important passages, `<b>` disappears from the semantic picture while `<strong>` stays. Default to `<strong>` for anything genuinely important and only reach for `<b>` when the bold is stylistic convention rather than a signal of meaning.

## Tip: Say the sentence aloud to find the <em>

Read the sentence out loud and notice where your voice rises. That word is the stress. Wrap it in `<em>`. This works because `<em>` was designed to mirror spoken stress, so your ear is the right tool for placing it. For `<strong>`, ask instead: would the content lose urgency or safety if this word were plain? If yes, it belongs in `<strong>`.

## Try it: Try it

Watch how the same sentence reads differently when `<em>` moves to a different word, and see `<strong>`, `<b>`, and `<i>` each in a natural context.

The animation is on the lesson page and is not part of this text version: https://codewithanimation.in/html/strong-em-vs-b-i

## Check yourself

### Question 1

A sign reads: "Do not touch the live wire." Which tag should wrap "Do not touch"?

- A. <strong>, because this is a safety-critical warning
- B. <b>, because you want it bold
- C. CSS font-weight: bold on a <span>

Correct answer: A

`<strong>` signals importance or urgency. A safety warning qualifies on both counts. `<b>` would look identical but communicate nothing beyond the visual.

- Why not B: <b> is a stylistic signal with no semantic weight. Safety warnings need <strong>, which communicates importance to screen readers and other tools.
- Why not C: CSS changes the look but carries no meaning. A screen reader or a page scraper would see no indication that this text is critical.

### Question 2

What changes when you move <em> from one word to another in the same sentence?

- A. The meaning of the sentence changes
- B. Only the visual appearance changes; the meaning stays the same
- C. Nothing; <em> and <strong> are interchangeable

Correct answer: A

`<em>` encodes spoken stress, and spoken stress changes meaning. Moving the emphasis to a different word in the same sentence produces a different sentence.

- Why not B: "I never said <em>she</em> took it" (someone else said it) means something different from "I <em>never</em> said she took it" (flat denial). The stress is part of the meaning.
- Why not C: <em> is spoken stress that shifts meaning. <strong> is importance or urgency. They are different signals for different purposes.

### Question 3

You are introducing the term "idempotent" for the first time in a technical article. Which element fits?

- A. <i>, for a technical term being introduced
- B. <em>, to stress the word
- C. <strong>, because it is an important concept

Correct answer: A

`<i>` marks text in an alternate voice: a technical term, a foreign phrase, a title, or a thought. Introducing a new term by name is exactly this case.

- Why not B: The word is not stressed for emphasis; it is set apart because it is a technical term. That is the job of <i>.
- Why not C: <strong> signals urgency or importance, not the introduction of a term. Use <i> for technical vocabulary being named for the first time.

## Remember this

- `<strong>` = important, serious, or urgent; `<em>` = spoken stress that changes the sentence meaning.
- `<b>` = stylistic offset with no semantic weight; `<i>` = alternate voice (terms, foreign phrases, thoughts).
- Moving `<em>` to a different word in the same sentence produces a different meaning.
- For pure visual bold or italic with no meaning attached, use CSS instead of `<b>` or `<i>`.
