[html5] r2540 - [e] (0) Add another example for <var>.
whatwg at whatwg.org
whatwg at whatwg.org
Tue Dec 16 19:06:18 PST 2008
Author: ianh
Date: 2008-12-16 19:06:18 -0800 (Tue, 16 Dec 2008)
New Revision: 2540
Modified:
index
source
Log:
[e] (0) Add another example for <var>.
Modified: index
===================================================================
--- index 2008-12-17 00:30:44 UTC (rev 2539)
+++ index 2008-12-17 03:06:18 UTC (rev 2540)
@@ -13489,7 +13489,35 @@
flavours of ice cream to be available for purchase!</p></pre>
</div>
+ <p>For mathematics, in particular for anything beyond the simplest
+ of expressions, MathML is more appropriate. However, the
+ <code><a href=#the-var-element>var</a></code> element can still be used to refer to specific
+ variables that are then mentioned in MathML expressions.</p>
+ <div class=example>
+
+ <p>In this example, Pythagoras' theorem is solved for the variable
+ <var title="">a</var>. The expression itself is marked up with
+ MathML, but the variable is mentioned in the figure's legend using
+ <code><a href=#the-var-element>var</a></code>.</p>
+
+ <pre><figure>
+ <math>
+ <mi>a</mi>
+ <mo>=</mo>
+ <msqrt>
+ <msup><mi>b</mi><mn>2</mn></msup>
+ <mi>+</mi>
+ <msup><mi>c</mi><mn>2</mn></msup>
+ </msqrt>
+ </math>
+ <legend> Pythagoras' theorem solved for <var>a</var> </legend>
+</figure></pre>
+
+
+ </div>
+
+
<h4 id=the-samp-element><span class=secno>4.6.15 </span>The <dfn><code>samp</code></dfn> element</h4>
<dl class=element><dt>Categories</dt>
@@ -54576,13 +54604,13 @@
van der Blonk, Mihai Şucan<!-- from ROBO Design -->, Mike
Brown, Mike Dierken<!-- S. Mike Dierken -->, Mike Dixon, Mike
Schinkel, Mike Shaver, Mikko Rantalainen, Neil Deakin, Neil Soiffer,
- Olaf Hoffmann, Olav Junker Kjær, Oliver Hunt, Peter Karlsson,
- Peter Kasting, Philip Jägenstedt, Philip Taylor, Philip
- TAYLOR<!-- a different one -->, Rachid Finge, Rajas Moonka, Ralf
- Stoltze, Ralph Giles, Raphael Champeimont, Rene Saarsoo, Richard
- Ishida, Rimantas Liubertas, Robert Blaut, Robert O'Callahan, Robert
- Sayre, Roman Ivanov, Ryan King, S. Mike Dierken, Sam Kuper, Sam
- Ruby, Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia
+ Olaf Hoffmann, Olav Junker Kjær, Oliver Hunt, Ozob, Peter
+ Karlsson, Peter Kasting, Philip Jägenstedt, Philip Taylor,
+ Philip TAYLOR<!-- a different one -->, Rachid Finge, Rajas Moonka,
+ Ralf Stoltze, Ralph Giles, Raphael Champeimont, Rene Saarsoo,
+ Richard Ishida, Rimantas Liubertas, Robert Blaut, Robert O'Callahan,
+ Robert Sayre, Roman Ivanov, Ryan King, S. Mike Dierken, Sam Kuper,
+ Sam Ruby, Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia
Pfeiffer, Simon Pieters, Stefan Haustein, Steffen Meschkat, Stephen
Ma, Steve Faulkner, Steve Runyon, Steven Garrity, Stewart Brodie,
Stuart Parmenter, Sunava Dutta, Tantek Çelik, Terrence Wood,
Modified: source
===================================================================
--- source 2008-12-17 00:30:44 UTC (rev 2539)
+++ source 2008-12-17 03:06:18 UTC (rev 2540)
@@ -14413,7 +14413,35 @@
flavours of ice cream to be available for purchase!</p></pre>
</div>
+ <p>For mathematics, in particular for anything beyond the simplest
+ of expressions, MathML is more appropriate. However, the
+ <code>var</code> element can still be used to refer to specific
+ variables that are then mentioned in MathML expressions.</p>
+ <div class="example">
+
+ <p>In this example, Pythagoras' theorem is solved for the variable
+ <var title="">a</var>. The expression itself is marked up with
+ MathML, but the variable is mentioned in the figure's legend using
+ <code>var</code>.</p>
+
+ <pre><figure>
+ <math>
+ <mi>a</mi>
+ <mo>=</mo>
+ <msqrt>
+ <msup><mi>b</mi><mn>2</mn></msup>
+ <mi>+</mi>
+ <msup><mi>c</mi><mn>2</mn></msup>
+ </msqrt>
+ </math>
+ <legend> Pythagoras' theorem solved for <var>a</var> </legend>
+</figure></pre>
+
+
+ </div>
+
+
<h4>The <dfn><code>samp</code></dfn> element</h4>
<dl class="element">
@@ -59674,13 +59702,13 @@
van der Blonk, Mihai Şucan<!-- from ROBO Design -->, Mike
Brown, Mike Dierken<!-- S. Mike Dierken -->, Mike Dixon, Mike
Schinkel, Mike Shaver, Mikko Rantalainen, Neil Deakin, Neil Soiffer,
- Olaf Hoffmann, Olav Junker Kjær, Oliver Hunt, Peter Karlsson,
- Peter Kasting, Philip Jägenstedt, Philip Taylor, Philip
- TAYLOR<!-- a different one -->, Rachid Finge, Rajas Moonka, Ralf
- Stoltze, Ralph Giles, Raphael Champeimont, Rene Saarsoo, Richard
- Ishida, Rimantas Liubertas, Robert Blaut, Robert O'Callahan, Robert
- Sayre, Roman Ivanov, Ryan King, S. Mike Dierken, Sam Kuper, Sam
- Ruby, Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia
+ Olaf Hoffmann, Olav Junker Kjær, Oliver Hunt, Ozob, Peter
+ Karlsson, Peter Kasting, Philip Jägenstedt, Philip Taylor,
+ Philip TAYLOR<!-- a different one -->, Rachid Finge, Rajas Moonka,
+ Ralf Stoltze, Ralph Giles, Raphael Champeimont, Rene Saarsoo,
+ Richard Ishida, Rimantas Liubertas, Robert Blaut, Robert O'Callahan,
+ Robert Sayre, Roman Ivanov, Ryan King, S. Mike Dierken, Sam Kuper,
+ Sam Ruby, Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia
Pfeiffer, Simon Pieters, Stefan Haustein, Steffen Meschkat, Stephen
Ma, Steve Faulkner, Steve Runyon, Steven Garrity, Stewart Brodie,
Stuart Parmenter, Sunava Dutta, Tantek Çelik, Terrence Wood,
More information about the Commit-Watchers
mailing list