<sup> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:sup

Introduction

You use the sup element to mark superscripts.

Superscripts are used in mathematical expressions.

The sup element summary

Item Value
Element sup
Local Attributes None
Tag StyleStart and end tag required
New in HTML5 No
Changes in HTML5None

Style Convention

sup {
   vertical-align: super;
   font-size: smaller;
}

The following code shows the sub and sup elements in use.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body>
       The point x<!--  w  w  w.  j  ava 2 s  . c  om-->
      <sub>10</sub>
       is the 10
      <sup>th</sup>
       point.  
   </body>
</html>

Related Tutorials