Syntax | <sup>...</sup> |
---|---|

Attribute Specifications | |

Contents | Inline elements |

Contained in | Inline elements, block-level elements |

The **sup** element is used for
*superscripts*. Since **sup** is
inherently presentational, it should not be relied upon to express
a given meaning. However, it can be useful for mathematical
exponents where the context implies the meaning of the exponent, as
well as other cases where superscript presentation is helpful but
not required. For example:

`The rent is due on the 1<sup>st</sup> of each month.`

`An example of a quadratic polynomial is <strong>3<var>x</var><sup class="exponent">2</sup> + 5<var>x</var> - 7</strong>.`

The following two examples are ambiguous when presented on a browser incapable of superscript text:

`2<sup class="exponent">4</sup> = 16`

`sin<sup class="exponent">2</sup><var>x</var> + cos<sup class="exponent">2</sup><var>x</var> = 1`

There is no simple solution for this problem. One could use
notation such as **2^4** to represent
"two raised to the exponent four." If it gains browser support,
MathML should provide
a more suitable solution in the future.