<var> tag

HTML <var> tag

The <var> tag is a phrase tag which creates a variable to perform any mathematical operation.

Normally, the text with <var> tag appears as italic.

Syntax:
<var>text..</var>

Example

<p>Find the value of y in <var>11y</var><var>10</var> = <var>12</var> + <var>13y</var></p>

CSS Default Value

font-style: italic; 

How Browser will display

INLINE.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
None None None

Attributes used with <var> tag

NONE

Global Attributes

The <var> tag supports Global attributes.

Event Attributes

The <var> tag supports Event attributes.

Supporting Browsers

supporting-browsers for tags

Related Tags

<kbd>, <samp> and <code> tags.

Tutorials for all brains!