<var>
HTML <var> Element Reference
The HTML <var> element represents a variable name in mathematics or programming.
Categories
- Text-level semantics
Tag omission
Consult the HTML Living Standard for the precise tag-omission rules.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical var element example.
<p>The area of a circle is π<var>r</var><sup>2</sup>.</p>