superscript and subscript in HTML used to display text content with typographical styles.

It provides Superscript(sup) and subscript(sub) tags in html.

Markdown does not support superscript and subscript natively.

One way using html tags,

There are different ways we can achieve adding superscript tags in markdown. Valid HTML tags are working in markdown content.

Here is an code for html superscript and subscript in markdown.

<sup>superscript</sup> content example.
<sub>subscript</sub> content example.

Renders superscript content example. subscript content example.

Here is an example

E=mc<sup>2</sup>
co<sub>2</sub>

Render as

E=mc2

co2

Another way, using directly Unicode or emoji characters in markdown content.

It is simple and easy to use. For this, OS should support the characters.

Markdown power of number example

Power of a number represents using the superscript tag in markdown content,

Here is

3 power of 2= 3<sup>2</sup>=9

3 power of 2= 32=9