nolachrymose
07-19-2002, 01:19 AM
Right now I'm learning MathML, and am finding it very confusing. What I have now is a little page that shows the Pythagorean Theorem(sp?). Problem is, it isn't being formatted. I have downloaded the required fonts and it still doesn't work, so I figure it has to do with the code itself. Since I couldn't figure it out myself, I figured I'd ask the experts ;). Here's the code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Pythagorean Theorem with MathML</title>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mi>c</mi>
<mo>=</mo>
</mrow>
<mrow>
<msqrt>
<mfenced>
<mrow>
<msup>
<mi>a</mi>
<mn>2</mn>
</msup>
</mrow>
<mrow>
<mo>+</mo>
</mrow>
<mrow>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
</mrow>
</mfenced>
</msqrt>
</mrow>
</mrow>
</math>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Pythagorean Theorem with MathML</title>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mi>c</mi>
<mo>=</mo>
</mrow>
<mrow>
<msqrt>
<mfenced>
<mrow>
<msup>
<mi>a</mi>
<mn>2</mn>
</msup>
</mrow>
<mrow>
<mo>+</mo>
</mrow>
<mrow>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
</mrow>
</mfenced>
</msqrt>
</mrow>
</mrow>
</math>
</body>
</html>