Web4College

HTML sup tag

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

Example
Try it
<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.

Preview Example
Try it

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.