Basics
MathML is based on XML so each mathematical operation is enclosed within a pair of tags, The initial tag for enclosing an operation is
<math></math>
The most commonly used elements for basic sums are:
- Math Identifier commonly used for x,y,z items this will show an enclosed item in italics - Math Operator commonly used for +,-,× etc. - Textual data - used to insert textual data within a calculation - Numerical data - used to represent numerical data within a calculation
So when constructing a calculation you piece together each element you require. For example:
<math><mn>2</mn><mo>+</mo><mn>2</mn><mo>=</mo><mn>4</mn></math> Which gives: