Name

sub, sup

Synopsis

    <sub>...</sub>, <sup>...</sup>

Attributes

Core (id, class, style, title), Internationalization, Events

Figure 10-3 shows how these examples of subscript and superscript render in a browser.

    <p>H<sub>2</sub>0</p>

    <p>E=MC<sup>2</sup></p>
Subscript and superscript

Figure 10-3. Subscript and superscript

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.