<> Element | HTML: Structural Layer

Standards Based Development

wⁱx²z⁽ⁿ⁺⁶⁾ (Unicode superscripts) to
wix2z(n + 6) (w<sup>i</sup>x<sup>2</sup>z<sup>(n + 6)</sup>) or
wix2z(n + 6) (w{{sup|i}}x{{sup|2}}z{{sup|(n + 6)}})


1 + x² + y³ (&sup2;) to
1 + x2 + x3 (<sup>2</sup>) or
1 + x2 + x3 ({{sup|2}})

Except under extraordinary circumstances, font sizes, color, etc should be controlled with Wikipedia's stylesheets.

Dates and Numbers

Music

Unit Symbols and Abbreviations

Science

Chemistry

Descriptions of:

C2H5OH using C{{sub|2}}H{{sub|5}}OH
3
2
He
using {{Nuclide2|He|3}}

Mathematics

22 = 4 using 2{{sup|2}} = 4

Special care is needed with subscripted labels to distinguish the purpose of the subscript (as this is a common error): variables and constants in subscripts should be italic, while textual labels should be in normal text font (Roman, upright). For example:

 x_\text{this one} = y_\text{that one} \,\!   (correct—typeset from <math> x_\text{this one} = y_\text{that one} \,\!</math>),

and

\sum_{i=1}^n { y_i^2 }\!   (correct—typeset from <math>\sum_{i=1}^n { y_i^2 }\!</math>),

but not

r = x_{predicted} - x_{observed}   (incorrect—typeset from <math>r = x_{predicted} - x_{observed}</math>).

Moreover, the TeX engine used on Wikipedia may format simple superscripts using <sup>...</sup> depending on user preferences. Thus, instead of the image x^2\,, many users see x2. Formulae formatted without using TeX should use the same syntax to maintain the same appearance.

Wikipedia:Manual of Style/Superscripts and Subscripts