sup and sub

<sup> marks superscript (above the baseline), <sub> marks subscript (below). Both are inline, don't break the line, and have semantic meaning.

Mathematics

E = mc2
(a + b)n = Σnk=0 C(n, k) an−k bk
∫ab f(x) dx
log2(256) = 8

Chemistry

H2O — water
C6H12O6 — glucose
CO2 + H2O → C6H12O6 + O2

Typography use cases

Rule of thumb

Both elements are legitimate inline semantic markup. Unlike CSS vertical-align, screen readers announce them distinctly and they participate correctly in text wrapping.