Chapter 1: Structuring Documents for the Web
22
The <sup> Element
The content of a <sup> element is written in superscript; it is displayed half a character’s height above
the other characters and is also often slightly smaller than the text surrounding...
More
Chapter 1: Structuring Documents for the Web
22
The <sup> Element
The content of a <sup> element is written in superscript; it is displayed half a character’s height above
the other characters and is also often slightly smaller than the text surrounding it.
Written on the 31<sup>st</sup> February.
The <sup> element is especially helpful in adding exponential values to equations, and adding the st, nd,
rd, and th suffixes to numbers such as dates.
However, in some browsers, you should be aware that it can
create a taller gap between the line with the superscript text and the line above it.
The <sub> Element
The content of a <sub> element is written in subscript; it is displayed half a character’s height beneath
the other characters and is also often slightly smaller than the text surrounding it.
The EPR paradox<sub>2</sub> was devised by Einstein, Podolsky, and Rosen.
The <sub> element is particularly helpful to create footnotes.
The <big> Element
In early versions of HTML there
Less