HTML sup tag

HTML <sup> tag defines superscript in mathematical or chemical equations.

<p> Equation of circle : x<sup>2</sup>+y<sup>2</sup> = r<sup>2</sup> </p>
<p> Mass-Energy equation: E = MC<sup>2</sup> </p>
</>

Tag Uses

Specific uses of <var> tag

sup element may be also be used with <var> element. var element means variable.

Example

See an example of mathematical equation.

y = ax2 + bx + c.

Equation of circle

x2+y2 = r2

Mass-Energy equation

E = MC2

Exponential equation

y = ex

Try </>

sup element should not be used for presentational purposes. It should be used at the place where the presence of sup element changes the meaning content.

Tag omission

Both starting and ending tags are necessary for the sup element.

Global Attributes

All the global attributes are applicable on the sup element.



Was this article helpful?