Home » MathML Subscripts

MathML Subscripts

by Online Tutorials Library

MathML Subscript

MathML subscript is created with <msub> tag. It is used to attach a subscript to an expression. It uses the following syntax: <msub> base subscript </msub>.

For Example:

To write X1

Equivalent MathML code:


Attributes of Subscript Element

Index Attribute Description
1) class, id, style It is provided for use with stylesheets.
2) href It is used to set a hyperlink to a specified uri.
3) mathbackground It specifies background color. you can use #rgb, #rrggbb and html color names.
4) mathcolor It specifies the text color. You can use #rgb, #rrggbb and html color names.
5) subscriptshift It specifies the minimum space by which to shift the subscript below the baseline of the expression, as a length value.

Supporting Browsers:

Element chrome browser Chrome ie browser IE firefox browser Firefox (Gecko) opera browser Opera safari browser Safari
<msub> Not Supported Not Supported Supported Not Supported Only Basic Support

You may also like