Here is some paragraph text with some superscript1 reference numbers2 and some subscript numbers3 which can be used in formulas or to relate to notes4 in an appendix5 or footnotes6.

Close this page

CSS - superscript and subscript

This page demonstrates creating these with CSS.

The CCS styles for this page are located in the <head> tag of this page, so just view the page source code to see what's going on.