var (Variable) Tag

<Var> (Variable Tag)


Var tag is used to display a "Variable" in separate font and style.
It is used to highlight the variable.

Example Code:

Result :

Variable a symbolic name associated with a value and whose associated value can be modified.
  • Variable can be of "Mathematical expression or Application code".
  • Apply proper closing tag for this input.
It is available in the previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.


It is applicable to all the browsers.

Ask Questions

Ask Question