sup html code example
Example 1: html sup
<p>This text contains <sup>superscript</sup> text.</p>
<style>
/* Default CSS : */
sup {
vertical-align: super;
font-size: smaller;
}
</style>
Example 2: html sup tag
<h1><span>Your</span>App<sup>TM</sup></h1>
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;
}