Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the & lt;sup> and & lt;sub> tag elements in HTML

Shulou Source: shulou.com Published: 2022-06-01 06:13:38 09月29日 Update

This article is to share with you about HTML and tag elements how to use content. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

Content contained in tags and their end tags will be displayed at half the height of the characters in the current text stream, but with the same font and font size as the text in the current text stream.

Tip: This tag is useful for adding footnotes to documents and for indicating exponent values in equations. When used in conjunction with tags, you can create good hyperlink footnotes.

Html subscript: floating content

Labels define subscript text.

Content contained in tags and their end tags will be displayed at half the height of the characters in the current text stream, but with the same font and font size as the text in the current text stream.

Hint: Both the label and its corresponding label are useful in mathematical equations, scientific symbols, and chemical formulas.

Usage Case Code

DIVCSS5www.DIVCSS5.com

subscript: DIVCSS5www.DIVCSS5.com

html sup tag should be added to the upper part of html, html sub tag should be added to the lower part of html.

1). Add labels before and after the contents that need to be superscript

2), need to float subscript content before adding labels

3) HTML tags that often use superscripts or subscripts in chemical expressions are more common. We can solve this problem by using html superscript subscript tags without using css styles.

Thank you for reading! About "HTML and tag elements how to use" this article is shared here, I hope the above content can have some help for everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Tags: Tags content subscript superscript text elements chemistry fonts font sizes characters text more useful articles footnotes height post hints good practical Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MySQL OPPO Reno vpn Linux