sup in html code example
Example 1: how to write superscript in html
<sup>this text is in superscribt</sup>
Example 2: html sup
<p>This text contains <sup>superscript</sup> text.</p>
<style>
/* Default CSS : */
sup {
vertical-align: super;
font-size: smaller;
}
</style>
Example 3: CSS how to style
/* Formatted from source to be a copy/pasted quickly. */
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}