We would like to know how to vertical-align: super;.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
span.superscript {<!-- w w w . ja va 2 s .co m-->
vertical-align: super;
font-size: 50%;
}
</style>
</head>
<body>
<p>
x<span class="superscript">2</span> = 9
</p>
</body>
</html>
The code above is rendered as follows: