Home » HTML sub Tag

HTML <sub> tag

HTML <sub> tag is termed as Subscript tag and which is used to define subscript text. The text within <sub> renders with a lower baseline and with a smaller font than surrounding text font.

The <sub> tag is useful for presenting mathematical formula and chemical formulas such as H2O.

Syntax

Following are some specifications about the HTML <sub> tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Textual

Example

Test it Now

Output:

HTML sub tag

Attribute:

Tag-specific attributes:

The <sub> tag does not contain any specific attribute.

Global attribute:

The <sub> tag supports the Global attributes in HTML.

Event attribute:

The <sub> tag supports the Event attributes in HTML.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
<sub> Yes Yes Yes Yes Yes
Next TopicHTML summary Tag

You may also like