The Web Design Group

var - Variable

Syntax <var>...</var>
Attribute Specifications
Contents Inline elements
Contained in Inline elements, block-level elements

The var element is used to markup variables or program arguments. Visual browsers typically render var as italic text, but authors can suggest a rendering using style sheets. Since var is a structural element, it carries meaning, making it preferable to font style elements such as i when marking up variables.


<p>Versions of HTML are typically numbered in an <var>x</var>.<var>x</var> format.</p>

More Information