HTML <sub> tag

Definitie en gebruik

<sub> Definitie van labeltekst. Labeltekst verschijnt onder de helft van de normale regel onderaan en wordt soms in een kleinere lettergrootte weergegeven.

Subscript text can be used in chemical formulas, such as H2O.

Tip:Please use <sup> tag Define superscript text.

See also:

HTML tutorial:HTML text formatting

HTML DOM reference manual:Subscript object

Example

Subscript text:

<p>This text contains <sub>subscript</sub> text.</p>

Try it yourself

Global attributes

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

event attributes

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

Default CSS settings

Most browsers will display the following default values <sub> Element:

sub {
  vertical-align: sub;
  font-size: smaller;
}

Try it yourself

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support