In HTML language, the <sup> tag defines superscript text. For example: Required to display: 2 oxygen ions, and in the html code, it needs to be written as: 2O<sup>2-</sup>. 2O2-
Content contained in the <sup> tag and its end tag</sup> will be displayed at half the height of the character in the current text stream, but will be the same as the font and font size of the text in the current text stream.
Tip: This label is useful when adding footnotes to a document and representing exponential values in the equation. If used in conjunction with the <a> tag, you can create a good hyperlink footnote.
HTML tag: SubscriptIn HTML language, the <SUB> tag can define subscript text. For example: It is required to display: 2 of H20 is the lower mark, and it needs to be written as: H<SUB>2</SUB>0 in the html code. H2O
Content contained in the <SUB> tag and its end tag</SUB> will be displayed at half the height of the character in the current text stream, but will be the same as the font and font size of the text in the current text stream.