asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > SUB Element

<SUB Element | SUB Object


Specifies that the enclosed text be displayed in subscript.HTML 3.2, 4, 4.01, 5

HTML Syntax

Remarks

Subscripts in HTML appear slightly below the baseline ( bottom edge ) of the preceding text and in a smaller font.

NOTE: Both start and end tags are required.

Attributes

The <sub> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

The following sample will render like this: ( X1,Y1 )

 ( X<sub>1</sub>,Y<sub>1</sub> )
See Also

SUP



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note