Home >Web Front-end >HTML Tutorial >HTML tags superscript sup and subscript sub apply
In HTML language, the sup tag can define superscript text; the sub tag can define subscript text. The following will explain its specific application HTML tag: superscript
In HTML, the tag defines superscript text. For example: if it is required to display: 2 oxygen ions, it needs to be written as: 2O2- in the html code. 2O2-
Content contained within the tag and its closing tag will be displayed at half the height of the characters in the current text stream, but with the same font as the text in the current text stream and font size are the same.
Tip: This tag is useful for adding footnotes to documents and for representing exponent values in equations. If used in conjunction with the tag, it can create a great hyperlink footer.
HTML tag: subscript
In HTML language, the tag can define subscript text. For example: it is required to display: 2 in H20 is the lower mark. In the html code, it needs to be written as: H20. H2O
Content contained within the tag and its closing tag will be displayed at half the height of the characters in the current text stream, but with the same font and size as the characters in the current text stream. The font sizes are all the same.
For more articles related to the application of HTML tags superscript sup and subscript sub, please pay attention to the PHP Chinese website!