HTML tags superscript sup and subscript sub apply

高洛峰
Release: 2017-03-02 14:47:38
Original
2397 people have browsed it

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!


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template