Typographical Elements in HTML

What Are Typographical Elements in HTML?

The HTML typographical elements are elements that are used to display their content in a specific manner not for presentational purposes but due to typographical conventions.

The notable HTML typographical elements are:

  • sub and

  • sup.


The sub is a typographical element in which content is rendered with lowered baseline and decreased font size.

The sub element is typically used for:

  • chemical formulas like C8H10N4O2,

  • footnotes, and

  • mathematics.

  C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub> stands for caffeine.


The sup is a typographical element in which content is rendered with higher baseline and using the decreased font size.

The sup element is typically used for:

  • ordinal numbers, like 5th

  • mathematical exponents.

We use cookies and similar technologies to enhance the quality of services, maintain statistics and adjust marketing content. You will find more information in the Cookies Policy.

By clicking OK you grant consent to processing of your personal data by us and our Trusted Partners with the purpose of maintain statistics and adjustment of the marketing content pursuant to the Privacy Policy. If you wish to not grant that consent and/or limit its extent click Settings.