Tag Description:


<SUB> Subscript

Definition: This element indicates that the text it encloses should be displayed as a subscript, and, if possible, in a smaller font (compared to normal text). The only place that the ALIGN attribute for SUB is meaningful is within the MATH element.

Standard Attributes: CLASS, ID, LANG



You can use the ALIGN attribute to override the default positioning. Superscripts and subscripts are typically placed to the right of the term to which they apply, while limits are usually placed above or below the symbol they're affecting.

* align=right: Places the script or limit to the right of the term.

* align=left: Places the scripts to the left of the term.

* align=center: Centers the script on the term. The script is placed below the term for subscripts and above it for superscripts.

Context: <SUB> is legal within

<A>, <ABBREV>, <ABOVE>, <ACRONYM>, <ADDRESS>, <AU>, <B>, <BANNER>, <BAR>, <BELOW>, <BIG>, <BODY>, <BODYTEXT>, <BOX>, <BT>, <CAPTION>, <CITE>, <CODE>, <CREDIT>, <DD>, <DDOT>, <DEL>, <DFN>, <DIV>, <DOT>, <DT>, <EM>, <FIGTEXT>, <FN>, <FORM>, <H1>, <H2>, <H3>, <H4>, <H5>, <H6>, <HAT>, <I>, <INS>, <ITEM>, <KBD>, <LANG>, <LH>, <LI>, <MATH>, <NOTE>, <OF>, <P>, <PERSON>, <Q>, <ROOT>, <S>, <SAMP>, <SMALL>, <SQRT>, <STRONG>, <SUB>, <SUP>, <T>, <TD>, <TH>, <TILDE>, <TT>, <U>, <VAR>, <VEC>

The following markup can be used within <SUB>

<A>, <ABBREV>, <ACRONYM>, <AU>, <B>, <BIG>, <BR>, <CITE>, <CODE>, <DEL>, <DFN>, <EM>, <I>, <IMG>, <INS>, <KBD>, <LANG>, <MATH>, <PERSON>, <Q>, <S>, <SAMP>, <SMALL>, <STRONG>, <SUB>, <SUP>, <TAB>, <TT>, <U>, <VAR>

Suggested style/usage: Close Tag: REQUIRED

Examples: The structure of water is H<SUB>2</SUB>O.


E-Mail: HTML for Dummies at html4dum@lanw.com
URL: http://www.lanw.com/html4dum/h4d2e/t0079.htm
Text - Copyright © 1995, 1996 Ed Tittel & Steve James.
For Dummies, the Dummies Man logo and Dummies Press are trademarks or registered trademarks of Wiley Publishing, Inc. Used with Permission.
Web Layout - Copyright © 1996, LANWrights
Revised -- May, 2002 [MCB]