Click to return to the DHTML, HTML     
styleSheet Object     SUP Element | SUP Object     DHTML Objects    
Web Workshop  |  DHTML, HTML & CSS

SUB Element | SUB Object


Specifies that the enclosed text should be displayed in subscript, using a smaller font than the current font.

HTML Syntax

<SUB
    CLASS=classname
    ID=value
    LANG=language
    LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT  | VBS 
    STYLE=css1-properties
    TITLE=text
    event = script
>

Remarks

The SUB element is an inline element and requires a closing tag.

This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

Members

Styles

Example

This example uses the SUB element to change some of the text to a subscript font.

(X<SUB>1</SUB>,Y<SUB>1</SUB>)

The preceding code causes the text to render as follows:
(X1,Y1)

See Also

SUP



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.