: The VAR Element
Last updated: 2026-09-12
<var>The VAR Element
Marks a variable in math expressions or programming, rendered in italic monospace by default.
| Category | Formatting |
|---|---|
| Content Model | Phrasing content |
| Allowed Parents | Any element that accepts phrasing content |
| Content Tag | Yes — requires closing </var> tag |
| Status | Standard |
📝 Syntax
<var>variable name</var>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <var> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: <var> only denotes a variable; for actual formulas use MathML or an image.