HTML <em> Tag

Beginner
5 min read
Updated: Oct 2026
4 examples
Live preview

Definition and Usage

The <em> element marks text with stress emphasis. That stress is usually on a word or short phrase and can change how the sentence is understood when read aloud or by assistive technology.

Browsers often show <em> in italics, but do not use it only for looks. For decorative italics use CSS font-style. For alternate tone or foreign words prefer <i>. For importance use <strong>. For titles of works use <cite>.

Baseline · Widely available.

Not deprecated and not experimental. Stable across modern browsers since about July 2015.

Nesting increases stress.

You may nest <em> inside <em>. Each level means a greater degree of emphasis.

HTML Syntax

syntax.html
<em> stressed text</em>

Both start and end tags are required. Content is phrasing content (text and inline elements).

Attributes

<em> has no element-specific attributes. Use globals when needed:

AttributeDescriptionTry it
classOptional CSS hook if you restyle emphasisTry it
langLanguage of the emphasized phrase when it differs from the parentTry it
titleAdvisory text (tooltip). Rarely needed on emOptional

Global Attributes

The <em> tag also supports the Global Attributes in HTML.

Live Preview

Move the stress to a different word and notice how the sentence feel changes.

A real <em>. Stress changes which word carries verbal emphasis.

Sentence

Get out of bed now!

Stress on “now” — urgency about timing.

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Basic Stress Emphasis

Wrap the word that should carry verbal stress.

HTML
<p>Get out of bed <em>now</em>!</p>
Try It Yourself

How It Works

  1. Write the sentence in a paragraph or other phrasing parent.
  2. Wrap the stressed word in <em>…</em>.
  3. Keep both tags — start and end are required.
  4. Readers and screen readers treat that word as emphasized, not just italic decoration.

Example 2 — Highlight a Contrast

Use <em> when the stressed words mark a real difference in meaning.

HTML
<p>
  Ice cream uses milk, sweetener, and cream.
  Frozen custard also needs <em>egg yolks</em>.
</p>
Try It Yourself

How It Works

  1. State the normal case (ice cream ingredients).
  2. Mark the contrasting detail with <em>.
  3. Keep the stress short — usually a word or short phrase.
  4. Ask: would stressing this aloud change the point? If yes, em fits.

Example 3 — Nested Emphasis

Nesting <em> increases the degree of stress.

HTML
<p>
  We <em>really <em>must</em></em> finish this today.
</p>
Try It Yourself

How It Works

  1. Wrap the outer stressed phrase in <em>.
  2. Wrap the strongest word in an inner <em>.
  3. Each nesting level means more emphasis (per the HTML model).
  4. Use nesting sparingly so the stress stays clear.

Example 4 — em vs i

Stress meaning with em. Offset prose (no stress) with i.

HTML
<p>Just <em>do</em> it already!</p>
<p>The word <i>the</i> is an article.</p>
Try It Yourself

How It Works

  1. First sentence: em stresses the verb — meaning shifts with that stress.
  2. Second sentence: i marks the word as an object of discussion, not stress.
  3. Visual italics may match, but the semantics differ.
  4. Pick by meaning, not by the default italic look.

Edge Cases & Pitfalls

Most mistakes treat em as a style button instead of stress meaning.

semantics

Not for decoration

Want italics only? Use CSS font-style: italic. Save <em> for real stress emphasis.

vs i

Do not confuse with i

<i> is for offset text (foreign words, alternate mood). <em> is for verbal stress.

vs strong

Importance is strong

Warnings and critical labels fit <strong>. Stress that changes pronunciation fits <em>.

titles

Book titles use cite

Names of works belong in <cite>, not <em>.

a11y

Implicit role is emphasis

Assistive tech can expose emphasis. Overusing em dilutes that signal — stress only what matters.

Browser Support

The <em> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

<em>

Widely available since about July 2015 (and long before as semantic emphasis). Chrome, Firefox, Safari, Edge, and Opera all support it fully.

98% Global support (approx.)
Google Chrome All
Full support
Mozilla Firefox All
Full support
Apple Safari All
Full support
Microsoft Edge All
Full support
Opera All
Full support
Samsung Internet All
Full support
Internet Explorer All
Supported
<em> Widely supported

Bottom line: Safe to use everywhere for stress emphasis. Choose em, i, strong, or cite by meaning — not by default italics.

Key Takeaways

  • Role: <em> marks stress emphasis that can change meaning.
  • Look vs meaning: italics are the default look; semantics are the reason to use it.
  • Compare: i offsets prose, strong marks importance, cite marks work titles.
  • Nesting: nested <em> means stronger stress — use it carefully.

One line: use <em> when stressing a word changes the sentence’s meaning.

Default CSS Settings

Typical user-agent styling (browsers may add more details):

default.css
em {
  font-style: italic;
}

You may restyle em with CSS, but keep a clear difference from surrounding text so the stress stays visible.

Frequently Asked Questions

The em element marks text with stress emphasis. That stress often changes how a sentence is understood when spoken or read.
No. Browsers often show em in italics, but em means stress emphasis. For look-only italics, use CSS font-style. For alternate tone or foreign words, prefer i; for work titles, prefer cite.
em is stress emphasis (verbal stress / contrast). strong marks greater importance or seriousness. They solve different semantic jobs.
em stresses meaning. i marks text set off from normal prose (for example a foreign word or alternate mood) without adding stress emphasis.
Yes. Nested em elements indicate a greater degree of emphasis at each level.
No. em only supports the global attributes, such as class, id, and lang.

Next: embed

Embed external content such as plugins or media resources.

embed tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

12 people found this page helpful