Recent chats
ASKGEEZ Q&A GUIDETechnology & devices

How do I use emphasis and strong importance in HTML text?

Quick answer

Use <em> for stress emphasis that affects how a word or phrase is understood; use <strong> to mark content with strong importance, seriousness, or urgency. Their usual italic and bold appearances are not their meanings. Choose the element that matches your message, and use CSS when you want visual styling without adding emphasis or importance. [S1] [S2]

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

I want to highlight a few words in HTML. How do I decide between <em> and <strong>?

Geez

Ask what the words mean in context, rather than what you want them to look like. Use <em> when stress on a word or phrase changes the sentence’s meaning or reading. Use <strong> when the content itself has greater importance, seriousness, or urgency—for example, a warning. [S1] [S2]

Their usual italic and bold appearances are just typical browser rendering; they are not the reason to choose the elements. If you only want text to appear italic or bold, use CSS for that styling instead. [S1] [S2]

Follow-up question

Can you show the difference with a before-and-after example?

Geez

Consider the sentence “I asked you to save the draft.” If the point is that you asked someone to save it, stress “you”:

Before: <p>I asked you to save the draft.</p>

After: <p>I asked <em>you</em> to save the draft.</p>

Here, the emphasis changes which part of the sentence receives stress. That is the kind of meaning <em> conveys. [S1]

Now consider a notice that a form must be submitted by a stated deadline:

Before: <p>Submit the form by Friday.</p>

After: <p><strong>Submit the form by Friday.</strong></p>

The marked instruction is important, rather than merely being words you want to make bold. <strong> is appropriate for strong importance, seriousness, or urgency. [S2] The example assumes the surrounding page makes the deadline clear; the tag does not supply missing details.

Follow-up question

What if I want both an important warning and stress on one word? And can I nest the elements?

Geez

You can use both when both meanings are genuinely present: the full warning is important, and one word needs stress. For example:

<p><strong>Do <em>not</em> share this draft.</strong></p>

Here, <strong> marks the warning’s importance; <em> stresses “not.” This is an illustrative example, so use it only if that warning matches your actual content. MDN says <em> may be nested to express greater emphasis. [S1] That does not mean every highlighted word needs nested emphasis, or that nesting should be used just to make text look stronger.

If the goal is appearance alone—such as italic text for a title—leave the semantic elements out and style the text with CSS. The elements describe emphasis or importance, not general-purpose visual decoration. [S1] [S2]

Follow-up question

How can I review a page with lots of highlighted text?

Geez

Review each marked phrase in its sentence and ask what meaning the tag communicates. If you cannot explain why a phrase is stressed or especially important, consider removing the tag and handling any purely visual preference with CSS. A practical review can look like this:

  1. Find each <em> and <strong>.
  2. Read the surrounding sentence and check whether the intended stress is clear.
  3. Confirm <em> marks stress that affects the reading, not simply a wish for italics. [S1]
  4. Confirm <strong> marks importance, seriousness, or urgency, not simply a wish for bold text. [S2]
  5. Check that the wording explains the point; the tags alone do not establish facts, deadlines, or consequences.

These elements indicate the meanings described above; the guidance does not establish that any particular page is accessible, correctly designed, or appropriate for every use. Review the actual content and its purpose as well as the markup.

A practical checklist

  • Read the phrase in its surrounding sentence before choosing a tag.

  • Use <em> only when stress emphasis affects the sentence’s meaning or reading.

  • Use <strong> only when the content carries strong importance, seriousness, or urgency.

  • Use CSS for visual styling that does not express emphasis or importance.

  • Review nested emphasis to ensure each element contributes a distinct intended meaning.

A few more useful answers

Does `<em>` mean “make this italic”?

No. It marks stress emphasis; italic appearance is typical rendering, not its purpose. Use CSS if you want italics purely for styling. [S1]

Does `<strong>` just mean “make this bold”?

No. It marks strong importance, seriousness, or urgency. Bold is its usual appearance, but appearance alone is not a reason to use it. [S2]

Can one sentence contain both `<em>` and `<strong>`?

Yes, when the content has both meanings—for example, an important warning with a specifically stressed word. Do not add either element solely for visual effect. [S1] [S2]

Sources

References used for this guide.

  1. [S1] The HTML em emphasis element — MDN
    developer.mozilla.org · Checked
  2. [S2] The HTML strong importance element — MDN
    developer.mozilla.org · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work