HTML <sub> (Subscript) Tag

❮ Previous Reference Next ❯

Example

<p>This is <sub>subscript</sub> text</p>

Meaning

The <sub> element renders its content as subscripted text.

The <sub> tag should be used for typographical reasons only.

Notes:

Version: HTML 3.2, 4, 4.01, 5


Standard Syntax

<sub>...</sub>



Browser Support




Status







Global Attributes

The <sub> element also supports the Global Attributes in HTML.


Event Attributes

The <sub> element also supports the Event Attributes in HTML.




By Default CSS Value(s)

Most of the browsers will display the <sub> element with the following by default value(s)

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



Related Tags:

<a>, <abbr>, <b>, <bdi>, <bdo>, <br>, <cite>, <code>, <data>, <dfn>, <em>, <i>, <kbd>, <mark>, <q>, <rp>, <rt>, <ruby>, <s>, <samp>, <small>, <span>, <strong>, <sup>, <time>, <u>, <var> and <wbr>
❮ Previous Reference Next ❯