MathML Tutorial
MathML Symbols
MathML Useful Resources
Selected Reading
- MathML - Underscript-Overscript
- MathML - Underscript
- MathML - Superscripts
- MathML - Subscript-Superscript
- MathML - Subscripts
- MathML - Style
- MathML - Repeating Decimals
- MathML - Radicals
- MathML - Phantom
- MathML - Padding
- MathML - Overscript
- MathML - Multiplication
- MathML - Matrices
- MathML - Long Division
- MathML - Fractions
- MathML - Fencing
- MathML - Enclosing
- MathML - Carries
- MathML - Basic Elements
- MathML - All Elements
- MathML - Overview
- MathML - Home
MathML Symbols
- MathML - Set Symbols
- MathML - Logic Symbols
- MathML - Invisible Operators
- MathML - Greek Letters
- MathML - Geometry Symbols
- MathML - Function Symbols
- MathML - Ellipses Symbols
- MathML - Calculus Symbols
- MathML - Algebra Symbols
MathML Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
MathML - Subscripts
MathML - Subscripts
<msub> tag is used to draw subscript to an expression.
Syntax
Here is the simple syntax to use this tag −
<msub> base subscript </msub>
Parameters
Here is the description of all the parameters of this tag −
base − base expression on which the subscript is to be drawn.
subscript − subscript.
Attributes
Here is the description of all the attributes of this tag −
subscriptshift − To specify the minimum space to shift the subscript below the basepne of the expression.
class, id, style − Used with stylesheets.
href − To specify a hyperpnk to a specified uri.
mathbackground − To specify the background color. Vapd formats are #rgb, #rrggbb and html color names.
mathcolor − To specify the text color. Vapd formats are #rgb, #rrggbb and html color names.
Example
Let s draw a subscript.
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <msub> <mi>x</mi> <mn>1</mn> </msub> </math>