sup

Represents superscript text for exponents, ordinals, footnotes, and trademark symbols. Uses font-variant-position for proper OpenType rendering.

Description

The <sup> element displays inline text as superscript. VB uses font-variant-position: super for proper OpenType rendering with a fallback for older browsers, and provides dedicated styling for footnote patterns via sup.footnote-ref and .footnotes.

When to Use

  • Exponents: E = mc2, r2
  • Ordinal numbers: 1st, 2nd, 3rd
  • Footnote references: Inline citation markers
  • Trademark symbols: ProductTM, Brand®

Examples

Footnote Pattern

VB provides dedicated styling for footnote references (sup.footnote-ref) and footnote definition lists (.footnotes):

SelectorPurpose
sup.footnote-refSmaller, medium-weight superscript for footnote markers
sup.footnote-ref > aNo underline, padded click target
.footnotesMuted, smaller text with top border separator
.footnotes a[href^="#fnref"]Back-to-reference links without underline

For automatic footnote management, use the <foot-notes> web component which handles numbering, linking, and accessibility.

CSS Reference

Accessibility

  • Screen readers may not announce superscript formatting
  • For footnotes, the link text (e.g., "[1]") provides navigable context
  • The .footnotes list uses an <ol> so screen readers announce numbered items
  • Back-to-reference links () let users return to where they left off

Related

  • <sub> — Subscript (chemical formulas, math indices)
  • <var> — Mathematical variables
  • <foot-notes> — Automatic footnote management web component
  • <a> — Footnote reference links