Wiris

Documentation

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • MathPlayer
                        • MathML 3 elementary math examples
                        • MathML 3 elementary math examples

                        Elementary math elements

                        Reading time: 1min

                        MathML 3 adds several elements to handle elementary math problems. The elementary math elements below should be inside of either an mstack or an mlongdiv element. Both mstack and mlongdiv make the digits of numbers contained in them be in their own columns and their children appear in their own row; mlongdiv's first three children are the divisor, dividend, and result and are treated specially.

                        • msgroup groups rows with similar alignment; options control the position and shifting of children (see multiplication and division examples below)
                        • msrow groups digits and operators into a row; options control the position of the children
                        • msline draws lines between rows of the stack; options control the position, length, thickness, and overhang of the line
                        • mscarries annotates the following row with optional borrows/carries and/or crossouts; options control the default location, style, and size of the borrows, carries, and crossouts
                        • mscarry a borrow/carry and/or crossout for a single digit; options control the location, style, and size of the borrow, carry, and/or crossout

                        If a blank entry in a column is needed, the element none can be used. This is shown in some of the examples below.

                        Was this article helpful?

                        Give feedback about this article

                        Related Articles

                        • The four basic operations
                        • Arithmetic
                        • Hyperbolic functions
                        • MathML makes elementary math accessible

                        Empowering STEM education

                        MathType

                        • Office Tools
                        • LMS
                        • XML
                        • HTML

                        WirisQuizzes

                        Learning Lemur

                        Integrations

                        Solutions

                        • Education
                        • Publishing houses – platforms and interactive
                        • Publishing houses – Print and digital
                        • Technical writers

                        Pricing

                        Downloads

                        Blog

                        • Success stories

                        About us

                        • Careers
                        • Partnership

                        Contact Us

                        Contact Sales

                        European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Cookie Settings

                        © Wiris 2026

                        Expand