<i>
Example
<p>
The phrase <i>déjà vu</i> comes from French.
</p><p>
The phrase <i lang="fr">déjà vu</i> comes from French.
</p>The lang attribute lets screen readers pronounce the French phrase correctly.
Common mistakes
- Using
<i>for icon fonts, which leaves an empty element with no meaning. - Using
<i>for stressed words that need<em>.
Key points
<i>is used for an alternate voice, like terms, foreign words or ship names, not for emphasis.- Foreign phrases inside
<i>have alangattribute. - Icons use a
<span>or<svg>, not an empty<i>element.
Interview questions
Is it okay to use i for icons?
It works but has no meaning. Use a <span> or <svg> with aria-hidden='true' for decorative icons.
How do I make text italic without adding meaning?
Use CSS font-style: italic on any element.