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.

Authoring format Syntax and example
XDITA

<i>

<p>Our franchise decoration is inspired by Japanese sushi bars. You can say <i>sayonara</i> to boring restaurants!</p>
HDITA

<i>

<p>Our franchise decoration is inspired by Japanese sushi bars. You can say <i>sayonara</i> to boring restaurants!</p>
MDITA (core and extended profiles)

Asterisk (*) or underscore (_)

Our franchise decoration is inspired by Japanese sushi bars. You can say *sayonara* to boring restaurants!

The bold component is typically rendered in an italic font.

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>
Example 3. MDITA example

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

# An innovative, attractive, and out of the ordinary concept

Our franchise decoration is inspired by Japanese sushi bars. You can say *sayonara* to boring restaurants!