Creating MathML Content

You now have an idea of the elements that make up both the presentation and content markup portions of the MathML vocabulary. Now, you're ready to find out how to create MathML content using these elements. Actually, there isn't any software support for content markup, so I'm going to focus on presentation markup. To get started, let's take a look at how MathML content is embedded within an HTML Web page (see Listing 36.3).

Listing 36.3. MathML Code Embedded in an HTML Document
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

<html>

  <head>
  </head>

  <body>

    <math>
      <mrow>
        <mrow>
          <msup>
            <mi>x</mi>
            <mn>3</mn>
          </msup>
          <mo>+</mo>
          <mn>6x</mn>
          <mo>+</mo>
          <mn>2</mn>
        </mrow>
        <mo>=</mo>
        <mn>0</mn>
      </mrow>
    </math>

  </body>

</html>

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.