<div dir="ltr">To list.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Tab Atkins Jr.</b> <span dir="ltr"><<a href="mailto:jackalmage@gmail.com">jackalmage@gmail.com</a>></span><br>
Date: Fri, Sep 19, 2008 at 6:23 PM<br>Subject: Re: [whatwg] Can <var> possibly work?<br>To: Ozob the Great <<a href="mailto:ozob1337@gmail.com">ozob1337@gmail.com</a>><br><br><br><div dir="ltr"><div class="Ih2E3d">
On Fri, Sep 19, 2008 at 5:41 PM, Ozob the Great <span dir="ltr"><<a href="mailto:ozob1337@gmail.com" target="_blank">ozob1337@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div dir="ltr"><div>I am concerned about the existence of HTML5's <var>. This was brought to my attention during a technical debate on Wikipedia which amounted to: Where is use of <var> appropriate? The problem is that while <var> can be used to distinguish variables from non-variables, there are many other mathematical constructs which cannot properly be called variables. If variables are going to be distinguished by the markup, then these other constructs ought be distinguished by the markup. But they can't be put inside <var> because they're not variables, and furthermore, they can't always said to be constants, functions, spaces or any short list of allowable objects; the number of different types of objects occurring in mathematics is tremendous, and specifying all the allowable objects in HTML markup is undesirable.</div>

</div></blockquote></div><br></div>Your error is in assuming that HTML5 wants to be very specific about math markup.<br><br><var> *can* be used to mark up variables in a mathematical expression.  It's primary use, though, is to mark up variables in things like, say, computer code, because these are often styled differently than the rest of text.  Frex, a <code> block may be generally just white-space:pre, but the vars will be bold as well.<br>

<br>In simple math expressions (the kind that can be expressed in vanilla html5), there is usually also a special convention for marking up variables.  Oftentimes they are simply italicized.<br><br>If you are wanting to mark up complex mathematical text with explicit semantics, one should indeed use MathML.  <var> is not meant to replace it; it's meant to provide a simple bit of semantics for a relatively common use-case.<br>

<br>~TJ<br></div>
</div><br></div>