Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

i — text of a different quality

The `i` element marks text in an alternate voice or quality relative to surrounding prose, rather than merely requesting italics.

Version: WHATWG HTML Living Standard; index snapshot date recorded separately

Syntax

<i>text</i>

The i element semantically distinguishes text such as a thought, technical term, taxonomic name, or foreign expression. It does not mark stress emphasis: use em for that. Mark a term’s defining instance with dfn.

Its content is phrasing content; both tags are required. Global attributes are available. Use lang to identify a foreign expression’s language; class can describe why the element is used.

CSS can change its appearance, so italics are not guaranteed. In the example, bonjour has lang="fr"; the surrounding document has lang="en".

Examples

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Alternate voice</title>
</head>
<body>
  <p>She whispered <i lang="fr">bonjour</i>.</p>
</body>
</html>

Result

She whispered bonjour.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources