HTML <var> Element Reference

The HTML <var> element represents a variable name in mathematics or programming.

<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>

Related references

Description

The HTML <var> element represents a variable name in mathematics or programming.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <var> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies