Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project









TAG:  sup

<sup> ... </sup>
 
The sup tag is used to insert superscript into a text. This allows the correct display of footnotes, math formulas, and scientific notation on a web page. Most browsers reduce the text size by half for the superscript (and subscript), but use the same font face as used for the rest of the text.
 
However, you can use style sheets and the style attribute to effect the appearance of the text to suit your desires.
 
The similar sub tag is used to create subscripts.
 
The separate closing tag is mandatory.
 
Attributes and Events
 
class    dir    id    lang    onclick    ondblclick    onkeydown    onkeypress    onkeyup    onmousedown    onmousemove    onmouseout    onmouseover    onmouseup    style    title
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>DevGuru XHTML sup Tag Example</title>
</head>
<body>
E = MC<sup>2</sup>
</body>
</html>

 
Output:
E = MC2
 


 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information