<em>
Example
<p>
I <i>did</i> lock the door.
</p><p>
I <em>did</em> lock the door.
</p><em> marks stress that changes the meaning of the sentence; <i> is for alternate voice like terms or names.
Common mistakes
- Using
<em>for book titles or foreign words, which belong in<cite>or<i>. - Using
<i>for icon fonts and confusing it with emphasis.
Interview questions
Is <em> always italic?
<em> always italic?By default browsers show it in italics, but CSS can style it any way.
When should I use <em> instead of <strong>?
<em> instead of <strong>?Use <em> for stress that changes meaning and <strong> for importance, seriousness or urgency.