Basic rules

When breaking down a calculation to be inserted in MathML format, it is important to remember that each element is designed to hold a set number of items within its tags.

Single Elements

These elements may only contain a single entity within the tags, a number such as 24, a math identifier such as x or y, or a mathematical operator such as a + or - .

  • <mi></mi>
  • <mo></mo>
  • <mn></mn>
  • <mtext></mtext>

Multiple Elements

The following tags may contain two or more elements. The following list is not exhaustive on the options available, however a complete reference may be found in the link below.

  • <mfrac></mfrac>
  • <msqrt></msqrt>
  • <munder></munder>
  • <msubsup></msubsup>

More information of the MathML elements can be found on the Mozilla website

Rows

A row is used to group MathML elements together within a surrounding tag. For example, the number 5 raised to a power of 2x:

<math><msup><mn>5</mn><mrow><mn>2</mn><mi>x</mi></mrow></msup></math>     becomes     52x

Here a row was used as the second element for an <msup></msup> element. Two rows could have been used if necessary, but this was not the case as all that was required was a single digit 5, plus the row to enclose the 2x

Key


Home

Home page

Hide/show contents

Hide / show
content menu

Next page

Next page

Previous page

Previous page


Activity

Further Reading

Video link

Download

×