Specifies that the enclosed text be displayed in superscript | HTML 3.2, 4, 4.01, 5 |
HTML Syntax
<sup
class = classname
id = value
style = css_style_rules
title = text
>
Superscripts in HTML appear slightly above the top edge of the preceding text and in a smaller font.
NOTE: Both start and end tags are required.
The <sup>
element has no attribute of its own, but supports global attributes common to all HTML elements.
The following sample will render like this: X2 + Y2
X<sup>2</sup> + Y<sup>2</sup>
SUB