Live Preview
Foreign phrase in alternate voice (browser default italic):
When the plan failed, she shrugged and said c'est la vie.

By the end of this tutorial, you’ll use the <i> element correctly for italic text, alternate voice, and stylistic shifts in tone.
In HTML, the <i> tag represents text in an alternate voice or mood — often shown in italics. This guide covers syntax, common patterns, comparisons with em, accessibility, and best practices for beginners and web developers alike.
Wrap alternate-voice text in valid <i> opening and closing tags.
Understand when italics carry mood or context, not stress emphasis.
Choose the right inline element for stylistic italics vs semantic stress.
Foreign phrases, technical terms, taxonomic names, and tone shifts.
Customize italic appearance with classes and stylesheets.
Know when i is appropriate and when em is required.
<i> Tag?The italic element (<i>) represents text in an alternate voice or mood. Browsers typically render it in italics, although the exact appearance may vary based on browser styles and your CSS.
Use <i> for alternate voice, foreign words, or technical terms. Use <em> when stressing a word changes the meaning of the sentence.
The element is inline, so it flows naturally inside paragraphs, list items, and headings. In HTML5, i was redefined with semantic meaning — it is not purely presentational anymore.
Wrap the text you want in alternate voice between opening and closing <i> tags:
<i>Your Italicized Text Here</i><i> is an inline element — it nests inside paragraphs and other phrasing content.<i />) is not valid in HTML.lang when the italicized text is in a different language.class and style for custom styling.| Use Case | Code Snippet | Result |
|---|---|---|
| Basic italic | <i>alternate voice</i> | alternate voice |
| Foreign phrase | <i lang="fr">c'est la vie</i> | c'est la vie |
| Technical term | <i>Homo sapiens</i> | Homo sapiens |
| Stress emphasis | <em>must</em> | must Use em, not i |
| Styled italic | <i class="highlight">term</i> | term |
| Tag-specific attrs | None | Global attributes only |
<i> vs <em>Both may appear italic, but they communicate different meaning:
| Element | Meaning | Best for |
|---|---|---|
<i> | Alternate voice or mood | Foreign phrases, technical terms, stylistic tone shifts |
<em> | Stress emphasis | Words that change sentence meaning when stressed |
| Appearance | Both often italic | Default browser styles can look similar |
| Accessibility | Different roles | em adds vocal stress; i does not imply urgency |
<p>She said <i lang="fr">c'est la vie</i>.</p>
<p>You <em>must</em> save your work before closing.</p><i> vs CSS font-styleChoose HTML semantics or CSS depending on whether italics carry meaning:
| Approach | When to use | Example |
|---|---|---|
<i> | Alternate voice, foreign words, technical terms | <i lang="la">etc.</i> |
| CSS class | Purely decorative italics with no semantic role | <span class="italic">...</span> |
<em> | Stress emphasis that affects meaning | <em>never</em> |
| Consistency | Design systems | Define reusable CSS classes for repeated italic patterns |
The <i> tag has no tag-specific attributes. Combine it with global attributes for styling and language:
class GlobalCSS hook for custom italic styling beyond default browser italics.
class="highlight"style GlobalInline CSS for one-off color, weight, or style changes.
style="color: #7c2d12;"lang GlobalLanguage of italicized text when it differs from the document.
lang="fr"id GlobalUnique identifier for linking or scripting the italic span.
id="latin-term"<p>This is a <i class="highlight">highlighted</i> example.</p>Prefer CSS classes over inline styles for reusable design systems — but keep i for alternate voice, not general emphasis.
Styled italics, foreign phrases, and alternate voice patterns with copy-ready code and live previews.
Foreign phrase in alternate voice (browser default italic):
When the plan failed, she shrugged and said c'est la vie.
Combine class with CSS for custom italic styling on an i element.
<p>This is a <i class="highlight">highlighted</i> example.</p>Use <i> with lang for words or phrases from another language.
<p>When the plan failed, she shrugged and said <i lang="fr">c'est la vie</i>.</p>Use <i> for a shift in tone or mood within a sentence — not for stress emphasis.
<p>He was <i>quite</i> surprised by the unexpected turn of events.</p>Browsers italicize i by default. Customize appearance with CSS while preserving alternate-voice semantics when needed:
font-style Default italiccolor Accent on technical termsfont-weight Bold + italic combofont-style: normal Voice shift without slant/* Default italic styling */
i {
font-style: italic;
}
i.highlight {
font-style: italic;
font-weight: 600;
color: #7c2d12;
}
i.latin {
font-style: italic;
letter-spacing: 0.02em;
}Live styled italic
The species Homo sapiens appeared in the fossil record.
Use the right element so assistive technologies convey the correct meaning:
em, not i.lang.Wrap foreign words, technical terms, or tone shifts in i.
User-agent styles visually distinguish alternate-voice text from surrounding prose.
Screen readers treat i as alternate voice, not stress emphasis like em.
Readers and assistive tech understand which text carries a different tone or context.
The <i> element is fully supported in all browsers, including legacy Internet Explorer.
From legacy Internet Explorer to the latest mobile browsers — the i element is fully supported for inline alternate-voice text.
Bottom line: Ship alternate-voice italics with confidence. The <i> element is safe to use in every production environment today.
Mastering the <i> tag helps you mark text in an alternate voice or mood — foreign phrases, technical terms, and stylistic tone shifts. Use it thoughtfully alongside em for stress emphasis.
Remember the difference between i, em, and CSS-only italics, add lang for foreign words, and avoid using i when semantic emphasis is required.
i for alternate voice, foreign words, and technical termsem when stress emphasis changes meaninglang for non-English italicized texti for general emphasis — that belongs in emi for decorationi tagi with b or strong<i>Bookmark these before you ship — they’ll keep your italics semantic and accessible.
<i> marks text in a different tone or mood.
Browsers render i in italics by default.
Renderingem = stress emphasis; i = alternate voice.
Help screen readers pronounce non-English words correctly.
AccessibilityPurely visual italics can use CSS classes instead.
PatternWorks in every browser, including legacy IE.
Compatibilityem for that.em carries semantic stress emphasis. i represents alternate voice or mood, often for stylistic italics without semantic stress.i when italics carry meaning. Use CSS font-style: italic on a span or class when italics are purely decorative.i was redefined in HTML5 with semantic meaning. It is not deprecated, but it should not replace em for stress emphasis.Try foreign phrases, styled italics, and tone shifts in the interactive HTML editor.
6 people found this page helpful