Course contentsShow
← Web Development
Lesson 66 of 2,9822. HTML FundamentalsFree lesson

Strong and Emphasis

Use <strong> for importance and <em> for stress emphasis with semantic meaning.

Strong and Emphasis

You'll learn how to mark text as important or stressed using the right HTML elements with semantic meaning.

The Core Idea

HTML gives us two special inline elements to highlight text: <strong> and <em>. While both make text stand out visually, they serve different semantic purposes—meaning they tell browsers, screen readers, and search engines why the text matters, not just how it should look.

<strong>: Importance

Use <strong> when text has strong importance, seriousness, or urgency. Think of it like raising your voice slightly or leaning forward to emphasize a critical point in conversation.

<p><strong>Warning:</strong> Do not touch the hot stove.</p>
<p>The deadline is <strong>today</strong> at 5 PM.</p>

By default, browsers render <strong> as bold text, but the real value is the meaning you're adding to your document structure.

<em>: Stress Emphasis

Use <em> when you want to add stress emphasis—changing the meaning or tone of a sentence. It's like italicizing a word when speaking to shift nuance.

<p>I <em>love</em> pizza. (versus just liking it)</p>
<p>Did you say the <em>blue</em> button? (not the red one?)</p>

Browsers typically show <em> as italic text, but again, the semantic meaning matters more than the styling.

Why Not Just Use CSS?

You could make text bold with CSS (font-weight: bold), but <strong> and <em> communicate meaning to assistive technologies. A screen reader might change its voice tone for emphasized text, helping users understand your intent.

Key Takeaway: Use <strong> to mark important content and <em> to add stress emphasis—they provide semantic meaning beyond visual styling, making your content more accessible and meaningful.