Syntax | <sub>...</sub> |
---|---|
Attribute Specifications | |
Contents | Inline elements |
Contained in | Inline elements, block-level elements |
The sub element is used for subscripts. Since sub is inherently presentational, it should not be relied upon to express a given meaning. However, it can be useful for chemical formulas and mathematical indices, where the subscript presentation is helpful but not required. For example:
Chemical formulas include
H<sub>2</sub>O (water) and
C<sub>21</sub>H<sub>27</sub>NO
(methadone).
Let <var>x</var> =
<var>x<sub>1</sub></var> +
<var>x<sub>2</sub></var> + ... +
<var>x<sub>n</sub></var>.