H I O X INDIA
FREE ADVANCE HTML Tutorial
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

HTML Basic
Introduction
How To
HTML Tags
html, head, body
Text Manipulation
IMAGES
Special Effects
Using Tables
Forms
Other Topics

ADVANCED HTML
Introduction
Media
Meta Tag
Frame tags
Fieldset
Tooltip
DTD
Image tags
Subscript & Superscript
Bullet styles
Canvas
Other tags
Ask Your Doubts
Feedback





Subscript/Superscript


Topic

How to make the text superscript or subscript?



Explanation

HTML<sub> and <sup> Tag

The text can be defined as subscript using <sub> and superscript using <sup> tags. These tags are much useful in chemical formula and some mathematical equations. Superscript [1] also used on a text line to have a footnote and the Subscript [2] is for scientific formulae.

Example Code:

This is a <sub>subscript</sub> example
This is a <sup>superscript</sup> example

Result:

This is a subscript example

This is a superscript example

The <sub>,<sup> can also be used along with the CSS.

[1] - Superscript example - E=MC2

[2] - Subscript example - H2O


others


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Other Links