Loading...
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.

Syntax

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

Example

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

Output

(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