Javatpoint Logo
Javatpoint Logo

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:

Elementchrome browser Chromeie browser IEfirefox browser Firefox (Gecko)opera browser Operasafari browser Safari
<msub>Not SupportedNot SupportedSupportedNot SupportedOnly Basic Support






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA