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.
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:
##
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!