HTML <var> Tag

HTML <var> Tag

In this tutorial, we will learn about var tag in HTML with the help of examples.

<var> Tag

Var tag <var> is used to defines a variable in programming or in a mathematical expression.

Note : The text inside the <var> tag is usually render in italic.


<var>......... </var>


<!DOCTYPE html>
    <title>var Tag</title>
      (a+b)<sup>2</sup> = a<sup>2</sup> + b<sup>2</sup> + 2ab


(a+b)2 = a2 + b2 + 2ab

Global Attribute

Var Tag support all the global attributes of HTML.

Event Attribute

Var Tag support all the event attributes of HTML.

Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of <var> tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML <video> Tag.

- Related Topics