How to use html sub tag

青灯夜游
Release: 2019-05-27 14:44:19
Original
3449 people have browsed it

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>
Copy after login

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!

Related labels:
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