<sub>

Description

A subscript span of text within a paragraph.

The <sub> element is a styling aid. In itself, it does not affect the content or style of the enclosed text, other than apply a default subscript CSS to the spanned text. When a class or id is applied to a <sub> element, the enclosed content may be additionally styled via CSS.

Attributes

No attributes other than standard attributes are defined for <sub> elements.

Immediate descendants

<sub> elements may contain text, interleaved with the following immediate descendants.

Element name Description
<emph> A emphasized span of text within a paragraph.
<graphic> An inline graphic within the paragraph text.
<span> A span of text within a paragraph.
<strong> A strongly highlighted span of text within a paragraph.
<sub> A subscript span of text within a paragraph.
<sup> A superscript span of text within a paragraph.

Immediate ancestors

Element name Relation
<cell> An enclosing cell in a table header or body.
<entry> An enclosing entry in a list.
<para> An enclosing paragraph.
<span> An enclosing span.
<sub> An enclosing sup.
<sup> An enclosing sup.

Example

<document xmlns="http://boradoc.org/1.0">
  <chapter>
    <para>
      A
      <sub>1</sub>
      , A
      <sub>2</sub>
      , A
      <sub>3</sub>
      , A
      <sub>4</sub>
      .
    </para>
  </chapter>
</document>

The above BDML renders to the following:

A1, A2, A3, A4.