i
The HTML <i> element marks text in an alternative voice or mood, such as a technical term, foreign phrase, thought, or work title. It does not mean that the text is more important.
What you will learn
- What kind of text the
ielement represents - How it differs from meaning-changing emphasis with
em - When CSS is the better choice for appearance alone
Basic example
<p>The word <i lang="la">per se</i> means “by itself.”</p>
<p>The article reviews <i>The Little Prince</i>.</p>
Browsers commonly display i in italics, but its purpose is to identify a different voice or category of text. Add a lang attribute when the marked text is in another language.
How it differs from similar choices
i: a different voice, mood, or category without added importance.em: emphasis that can change meaning or pronunciation.- CSS: visual styling when the text has no semantic distinction.