Subscript

A subscript is text that is printed below the line. It is frequently used in chemical and mathematical formulas.

Authoring format Syntax and example
XDITA

<sub>

<p>In very rare occasions, our Sensei Sushi kitchen lab technicians can use Sulfuric Acid, FCC (H<sub>2</sub>SO<sub>4</sub>) to control pH during processing. Ask your supervisor for more information.</p>
HDITA

<sub>

<p>In very rare occasions, our Sensei Sushi kitchen lab technicians can use Sulfuric Acid, FCC (H<sub>2</sub>SO<sub>4</sub>) to control pH during processing. Ask your supervisor for more information.</p>
MDITA (core and extended profiles)
In very rare occasions, our Sensei Sushi kitchen lab technicians can use Sulfuric Acid, FCC (H<sub>2</sub>SO<sub>4</sub>) to control pH during processing. Ask your supervisor for more information.

The subscript component is typically rendered lower in relationship to the surrounding text and in a smaller 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 subscript 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="food-additives">
  <title>Food Additives for pH Control</title>
  <body>
    <p>In very rare occasions, our Sensei Sushi kitchen lab technicians can use Sulfuric Acid, FCC (H<sub>2</sub>SO<sub>4</sub>) to control pH during processing. Ask your supervisor for more information.</p>
  </body>
</topic>
Example 2. HDITA example

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

  <!DOCTYPE html>
  <html>
  <head>
  <title>Food Additives for pH Control</title>
  </head>
  <body>
   <article id="food-additives">
    <h1>Food Additives for pH Control</h1>
    <p>In very rare occasions, our Sensei Sushi kitchen lab technicians can use Sulfuric Acid, FCC (H<sub>2</sub>SO<sub>4</sub>) to control pH during processing. Ask your supervisor for more information.</p>
  </article>
  </body>
  </html>
Example 3. MDITA example

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

# Food Additives for pH Control

In very rare occasions, our Sensei Sushi kitchen lab technicians can use Sulfuric Acid, FCC (H<sub>2</sub>SO<sub>4</sub>) to control pH during processing. Ask your supervisor for more information.