1. Subscript Examples (<sub>)

Displays characters slightly below the baseline:

H2O

HTML: H<sub>2</sub>O (Water)

CO2

HTML: CO<sub>2</sub> (Carbon Dioxide)

Math sequence: x1, x2, x3

HTML: x<sub>1</sub>, x<sub>2</sub>, x<sub>3</sub>

2. Comparison: Superscript (<sup>)

Displays characters slightly above the baseline:

E = mc2

HTML: E = mc<sup>2</sup>

Ordinal number: 1st Place

HTML: 1<sup>st</sup> Place