variable


<var>

Browser
Internet Explorer Firefox Opera
Type
Inline

The VAR element defines a variable.


<var>variable</var>


Example

<p>Normal text, <var>Variable,</var> Normal text,</p>
Output

Normal text, Variable, Normal text,


<code>
var <var>elem</var> = document.getElementById("ID");
</code>
Output
var elem = document.getElementById("ID");