Short URL: http://html5.org/r/3811
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 3811 | <math> example. | 2009-09-11 10:05 |
Index: source
===================================================================
--- source (revision 3810)
+++ source (revision 3811)
@@ -29331,7 +29331,7 @@
<p>Here is an example of a script that uses canvas to draw pretty
glowing lines.</p>
- <pre><canvas width="800" height="450"></canvas>
+ <pre><canvas width="800" height="450"></canvas>
<script>
var context = document.getElementsByTagName('canvas')[0].getContext('2d');
@@ -30193,7 +30193,44 @@
</div>
+ <div class="example">
+ <p>Here is an example of the use of MathML in an HTML document:</p>
+
+ <pre><!DOCTYPE html>
+<html>
+ <head>
+ <title>The quadratic formula</title>
+ </head>
+ <body>
+ <h1>The quadratic formula</h1>
+ <p>
+ <math>
+ <mi>x</mi>
+ <mo>=</mo>
+ <mfrac>
+ <mrow>
+ <mo form="prefix">−</mo> <mi>b</mi>
+ <mo>±</mo>
+ <msqrt>
+ <msup> <mi>b</mi> <mn>2</mn> </msup>
+ <mo>−</mo>
+ <mn>4</mn> <mo>⁢</mo> <mi>a</mi> <mo>⁢</mo> <mi>c</mi>
+ </msqrt>
+ </mrow>
+ <mrow>
+ <mn>2</mn> <mo>⁢</mo> <mi>a</mi>
+ </mrow>
+ </mfrac>
+ </math>
+ </p>
+ </body>
+</html></pre>
+
+ </div>
+
+
+
<h4>SVG</h4>
<p>The <dfn><code>svg</code></dfn> element from the <span>SVG