The HTML <var></var> element, or variable, represents a variable in a mathematical expression or a programming context. The rendered content is italicized, much like the <i> element. This element should only be used if the content indicates a variable name. Do not use this element if the aim is solely to italicize text. Use CSS or the <i> element for this purpose.


Global Attributes

See Global HTML Attributes.

HTML example:

5<var>x</var> + 5 = 20

That produces: 5x + 5 = 20

On Wikia, it is possible to use the wiki markup <math></math> element to render math content.


produces: 5x+5=20

External Links

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.