<sub>
A subscript is text that is printed below the line. It is frequently used in chemical and mathematical formulas.
Rendering expectations
The content of the <sub>
element is typically rendered lower in relationship to the
surrounding text and in a smaller font.
Specialization hierarchy
The <sub>
element is
specialized from <ph>
. It is defined in the
highlighting-domain module.
Content model
(Text |
<cite>
|
<include>
|
<keyword>
|
<ph>
|
<strong>
|
<em>
|
<b>
|
<i>
|
<line-through>
|
<overline>
|
<sup>
|
<sub>
|
<tt>
|
<u>
|
<q>
|
<term>
|
<text>
|
<tm>
|
<xref>
|
<data>
|
<sort-as>
|
<draft-comment>
|
<foreign>
|
<required-cleanup>
)*
Contained by
<abstract>
,
<alt>
,
<b>
,
<bodydiv>
,
<cite>
,
<consequence>
,
<data>
,
<dd>
,
<ddhd>
,
<desc>
,
<div>
,
<draft-comment>
,
<dt>
,
<dthd>
,
<em>
,
<entry>
,
<example>
,
<fallback>
,
<figgroup>
,
<fn>
,
<howtoavoid>
,
<i>
,
<index-see>
,
<index-see-also>
,
<indexterm>
,
<li>
,
<line-through>
,
<lines>
,
<linkinfo>
,
<linktext>
,
<linktitle>
,
<lq>
,
<navtitle>
,
<note>
,
<overline>
,
<p>
,
<ph>
,
<pre>
,
<q>
,
<searchtitle>
,
<section>
,
<shortdesc>
,
<sli>
,
<source>
,
<stentry>
,
<strong>
,
<sub>
,
<subtitle>
,
<sup>
,
<title>
,
<titlealt>
,
<titlehint>
,
<tt>
,
<typeofhazard>
,
<u>
,
<xref>
Contained by
-
<abstract>
-
<alt>
-
<b>
-
<bodydiv>
-
<cite>
-
<consequence>
-
<data>
-
<dd>
-
<ddhd>
-
<desc>
-
<div>
-
<draft-comment>
-
<dt>
-
<dthd>
-
<em>
-
<entry>
-
<example>
-
<fallback>
-
<figgroup>
-
<fn>
-
<howtoavoid>
-
<i>
-
<index-see>
-
<index-see-also>
-
<indexterm>
-
<li>
-
<line-through>
-
<lines>
-
<linkinfo>
-
<linktext>
-
<linktitle>
-
<lq>
-
<navtitle>
-
<note>
-
<overline>
-
<p>
-
<ph>
-
<pre>
-
<q>
-
<searchtitle>
-
<section>
-
<shortdesc>
-
<sli>
-
<source>
-
<stentry>
-
<strong>
-
<sub>
-
<subtitle>
-
<sup>
-
<title>
-
<titlealt>
-
<titlehint>
-
<tt>
-
<typeofhazard>
-
<u>
-
<xref>
Inheritance
+ topic/ph hi-d/sub
The <sub>
element is specialized from
<ph>
. It is defined in the hi-domain module.
Attributes
The following attributes are
available on this element: universal
attributes and @keyref
.
The following attributes are available on this element: universal attributes and the attributes defined below.
@keyref
- Specifies a key name that acts as a redirectable reference based on a key definition within a map. See The keyref attribute for information on using this attribute.
Example
This section is non-normative.
The following code sample shows how the <sub>
element is used
in a chemical
formula:
<note>When cleaning, be sure to dilute the baking soda (NaHCO<sub>3</sub>) with water
(H<sub>2</sub>O) before mixing in the vinegar (CH<sub>3</sub>COOH).</note>