<var>

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

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");