Get the App
SLTechnology News&Howtos  ›  Development  › 

How to define sub tags in HTML

Shulou Source: shulou.com Published: 2022-06-01 06:30:34 10月04日 Update

This article will explain in detail how to define sub tags in HTML. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

HTML tag

Example

Subscript text:

This text contains subscript text.

Browser support

All major browsers support tags.

Label definition and instructions for use

Label defines the subscript text. The subscript text will be displayed below half of the character height in the current text stream below the baseline, but with the same font and size as the text in the current text stream. Subscript text can be used to represent chemical formulas, such as H2O.

Tip: use labels to define superscript text.

The difference between HTML4.01 and HTML5

None.

Global attribute

Tags support the global properties of HTML.

Event attribute

The tag supports the event attribute of HTML.

On "how to define sub tags in HTML" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

Tags: Tags text subscript attributes support articles events global more browser browsing good practical superscript mainstream between instructions for use formulas content chemistry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Apple OPPO Reno macOS NVidia