Home  >  Article  >  Web Front-end  >  How to use html sub tag

How to use html sub tag

青灯夜游
青灯夜游Original
2019-05-27 14:44:193422browse

html The sub tag is used to define subscript text; the subscript text will be displayed below half the character height in the current text stream as the baseline, but the font and size will be the same as the text in the current text stream. Subscripted text is useful in mathematical equations, scientific symbols, and chemical formulas.

How to use html sub tag

html How to use sub tag?

tag defines subscript text. Subscripted text will appear below the baseline at half the character height in the current text stream, but the font and size will remain unchanged.

Note: The content contained in the tag and its closing tag will be displayed at half the character height of the current text stream, but different from the current The font and size of the text in the text stream are the same.

Note: Both the tag and its corresponding tag are very useful in mathematical equations, scientific symbols and chemical formulas, such as H2O.

html sub tag example

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
这段文本包含 <sub>下标</sub>
</body>
</html>

Rendering:

How to use html sub tag##

The above is the detailed content of How to use html sub tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:How to use html i tagNext article:How to use html i tag