Skip to content Skip to navigation


You are here: Home » Content » An Introduction to Content MathML


Recently Viewed

This feature requires Javascript to be enabled.

An Introduction to Content MathML

Module by: Connexions, Kyle Barnhart. E-mail the authors

Summary: A brief summary of Content MathML, including an example and its use.

Content MathML is a markup language used to describe mathematical expressions by correctly preseving their semantics. Rather than focusing on the way an equation or expression looks (like Presentation MathML), Content MathML (or C-MML) aims to preserve the meaning of the expression so that it can be interpreted by anyone. It does this by marking up each object with special tags that denote which operations to apply and in which order to apply them. The mathematical expression can then be view by anyone with a MathML-enabled browser with the correct math fonts installed.

If you're familiar with XML or HTML, then you've already seen markup languages in action. Markup languages are used for presenting documents such as web sites according to certain structural rules. In the case of C-MML, the tags contain all the structural information about the expression.

Below is the classic equation 2+2=4 2 2 4 represented in MathML.


2+2=4 2 2 4 expressed in Content MathML

Take a look at the above markup code: It may seem like a lot of information and tagging to represent something as easy-to-write as 2+2=4 2 2 4 . Remember, though, that C-MathML is interested in conveying the semantics of the expression, not just displaying symbols on the screen. Math is also a very explicit language, so MathML expressions must be somewhat long in order to convey meaning. Bigger and more complex equations benefit from the organization and explicit tagging of Content MathML, but for the sake of providing a simple example we will stick with 2+2=4 2 2 4 .

MathML was designed to be built by special programs called equation editors, and not written by hand. While equation editors are great tools to use while learning the language, they are not necessary to build an effective MathML expression. In fact, many equation editors produce semantically incorrect MathML. It's important to always double-check any MathML markup created with an equation editor, especially to look for errors in the order of operations.

Content actions

Download module as:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens


A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks