asp.net.ph

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

<sub> Element


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

HTML Syntax

Remarks

The <sub> element denotes a subscript.

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

Along with the <sup> element, these elements must be used only to mark up typographical conventions with specific meanings.

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> )

External References

See Also

SUP


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

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