O elemento HTML Variable (<var>) representa uma variável em uma expressão matemática ou um contexto de programação.
| Permitted content | Phrasing content |
| Tag omission | Both start and end tags are required |
| Permitted parent elements | Any element that accepts phrasing content. |
| Normative document | HTML, "The var element" |
Este elemento somente inclui os global attributes.
Este elemento implementa a interface HTMLElement.
Implementation note: up to Gecko 1.9.2 inclusive, Firefox implements the HTMLSpanElement interface for this element.
var {
font-style: italic;
}
<p> A simple equation: <var>x</var> = <var>y</var> + 2 </p>
A simple equation: x = y + 2