How To Enter Subscripts and Superscripts
Subscripts and superscripts can directly be added to Wolfram language cells from keyboard shortcuts or through menu commands.
In Input (Superscripts)...
Type a superscript with (Insert ▶ Typesetting ▶ Superscript). Exit from a superscript with
(Insert ▶ Typesetting ▶ End Subexpression):

-
is a mnemonic for power, as in x^2.
In Input (Subscripts)...
Type a subscript with (Insert ▶ Typesetting ▶ Subscript). Exit from a subscript with
(Insert ▶ Typesetting ▶ End Subexpression):

is a mnemonic for the common ASCII notation for subscripts, as in
.
In Text (Superscripts)...
Type a superscript with (Insert ▶ Typesetting ▶ Superscript). Exit from typing math with
:

Exit from a superscript but continue typing math with (Insert ▶ Typesetting ▶ End Subexpression):

- Typing a superscript in text automatically enters math mode. You can enter math mode explicitly with
. See Insert Inline Math In Text for details.
In Text (Subscripts)...
Type a subscript with (Insert ▶ Typesetting ▶ Subscript). Exit from typing math with
:

Exit from a subscript but continue typing math with (Insert ▶ Typesetting ▶ End Subexpression):

- Typing a subscript in text automatically enters math mode. You can enter math mode explicitly with
. See Insert Inline Math In Text for details.
Programmatically...
On output, Subscript, Superscript and Subsuperscript format respectively as subscripts, superscripts and subsuperscripts:

