HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3811

File a bug

SVNBugCommentTime (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>
 
-  &lt;pre>&lt;canvas width="800" height="450">&lt;/canvas>
+  <pre>&lt;canvas width="800" height="450">&lt;/canvas>
 &lt;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>&lt;!DOCTYPE html>
+&lt;html>
+ &lt;head>
+  &lt;title>The quadratic formula&lt;/title>
+ &lt;/head>
+ &lt;body>
+  &lt;h1>The quadratic formula&lt;/h1>
+  &lt;p>
+   &lt;math>
+    &lt;mi>x&lt;/mi>
+    &lt;mo>=&lt;/mo>
+    &lt;mfrac>
+     &lt;mrow>
+      &lt;mo form="prefix">&#x2212;&lt;/mo> &lt;mi>b&lt;/mi>
+      &lt;mo>&#x00B1;&lt;/mo>
+      &lt;msqrt>
+       &lt;msup> &lt;mi>b&lt;/mi> &lt;mn>2&lt;/mn> &lt;/msup>
+       &lt;mo>&#x2212;&lt;/mo>
+       &lt;mn>4&lt;/mn> &lt;mo>&#x2062;&lt;/mo> &lt;mi>a&lt;/mi> &lt;mo>&#x2062;&lt;/mo> &lt;mi>c&lt;/mi>
+      &lt;/msqrt>
+     &lt;/mrow>
+     &lt;mrow>
+      &lt;mn>2&lt;/mn> &lt;mo>&#x2062;&lt;/mo> &lt;mi>a&lt;/mi>
+     &lt;/mrow>
+    &lt;/mfrac>
+   &lt;/math>
+  &lt;/p>
+ &lt;/body>
+&lt;/html></pre>
+
+  </div>
+
+
+
   <h4>SVG</h4>
 
   <p>The <dfn><code>svg</code></dfn> element from the <span>SVG

|