MathML Subscript

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

MathML Subscript

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

For Example:

To write X1

Equivalent MathML code:

  1. <math xmlns='' display='block' >  
  2.   <msub>  
  3.     <mi>X</mi>  
  4.     <mn>1</mn>  
  5.   </msub>   
  6. </math>  

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