🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
REFERENCEhtml

html Documentation

LOADING ENGINE...

<em>

AI & DATA SCIENCE // em-tag

The <em> element marks text with stress emphasis — italicizing it while signaling to assistive technology that the emphasis changes the meaning of the sentence.

Syntax

I <em>did</em> send the email.

Deep Dive Course

**`<em>`** renders italic by default but, unlike `<i>`, carries semantic meaning: it marks a word or phrase that changes the sentence's intent when spoken aloud with stress. Compare 'I never said <em>she</em> stole it' (someone else said it) versus 'I never said she <em>stole</em> it' (maybe she borrowed it) — the emphasized word entirely changes what's being communicated, which is exactly what `<em>` is designed to convey to screen readers.

1Understanding <em>

`<em>` renders italic by default but, unlike <i>, carries semantic meaning: it marks a word or phrase that changes the sentence's intent when spoken aloud with stress. Compare 'I never said <em>she</em> stole it' (someone else said it) versus 'I never said she <em>stole</em> it' (maybe she borrowed it) — the emphasized word entirely changes what's being communicated, which is exactly what <em> is designed to convey to screen readers.

💡

Nesting <em> inside another <em> increases the degree of stress for that portion of text, similar to how nested <strong> increases importance.

editor.html
<p>You <em>must</em> submit the form before midnight.</p>
localhost:3000

2Practical Example

Here is a real-world application of <em> showing how it is used in production HTML.

editor.html
<!-- Changing which word is emphasized changes the meaning -->
<p>I <em>never</em> said he broke the vase.</p>
<p>I never said <em>he</em> broke the vase.</p>
localhost:3000

3Best Practices

Follow these guidelines when working with <em>:

1. Use <em> when stress genuinely changes the meaning of the sentence

2. Use <i> instead for foreign words, technical terms, or titles with no change in meaning

3. Avoid using <em> purely for italic styling unrelated to meaning — use CSS font-style instead

⚠️

Tip: Nesting <em> inside another <em> increases the degree of stress for that portion of text, similar to how nested <strong> increases importance.

editor.html
<p>You <em>must</em> submit the form before midnight.</p>
localhost:3000

Examples

Example 01Basic Usage
<p>You <em>must</em> submit the form before midnight.</p>
Example 02Advanced Example
<!-- Changing which word is emphasized changes the meaning -->
<p>I <em>never</em> said he broke the vase.</p>
<p>I never said <em>he</em> broke the vase.</p>

Best Practices

  • Use when stress genuinely changes the meaning of the sentence
  • Use instead for foreign words, technical terms, or titles with no change in meaning
  • Avoid using purely for italic styling unrelated to meaning — use CSS font-style instead

Interview Question

Why does <em> matter more for screen reader users than for sighted users?

Hint: Think about what a sighted user perceives visually versus what gets communicated audibly.

A sighted user sees italic text and infers emphasis from context and visual styling. A screen reader can change vocal stress/pitch when it encounters <em>, actually conveying the intended emphasis audibly — the same way a human reading the sentence aloud would stress that word. Using a plain <i> or CSS italics instead gives the sighted user the same visual result but provides no equivalent audible cue to screen reader users.

Exercises

EasyPractice using <em> in a real scenario.
View Solution
<p>You <em>must</em> submit the form before midnight.</p>

Frequently Asked Questions

Why does <em> matter more for screen reader users than for sighted users?

A sighted user sees italic text and infers emphasis from context and visual styling. A screen reader can change vocal stress/pitch when it encounters , actually conveying the intended emphasis audibly — the same way a human reading the sentence aloud would stress that word. Using a plain or CSS italics instead gives the sighted user the same visual result but provides no equivalent audible cue to screen reader users.

Related Functions

i-tagstrong-tag