Italic text

Italic text is text that is used to emphasize the key points in printed text, or when quoting a speaker, to show which words the speaker stressed.

Syntax

XDITA

<i>

HDITA

<i>

MDITA (core and extended profiles)

There is no specific support in the MDITA core profile. If needed, use an HDITA snippet.

Rendering expectations

The bold component is typically rendered in an italic font.

Attributes

The available attributes vary based on the authoring format:

XDITA and HDITA
The following attributes are available on this element: localization attributes, universal attributes, and @keyref.
MDITA
For the MDITA core profile, the equivalent of the XDITA @keyref attribute is supported. For the MDITA extended profile, attributes can be specified by using the HDITA representation.

Examples

This section is non-normative.

Example 1. XDITA example

The following example demonstrates the use of italic text in an XDITA topic.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD LIGHTWEIGHT DITA Topic//EN" "lw-topic.dtd">
<topic id="design">
  <title>Designs inspired by Japanese originals</title>
  <body>
    <p>Our franchise decoration is inspired by Japanese sushi bars. You can say <i>sayonara</i> to boring restaurants!</p>
  </body>
</topic>
Example 2. HDITA example

The following example demonstrates the use of italic text in an HDITA topic.

<!DOCTYPE html>
<title>Designs inspired by Japanese originals</title>
<body>
  <article id="design">
    <h1>Designs inspired by Japanese originals</h1>
    <p>Our franchise decoration is inspired by Japanese sushi bars. You can say <i>sayonara</i> to boring restaurants!</p>
  </article>
</body>