HTML var tag
HTML

HTML var tag

Mishel Shaji
Mishel Shaji

The HTML var tag (variable) is used to represent variable names. Most browsers display it’s content in italics.

Synyax

<var>Variable name</var>

This tag can be used with any elements that supports phrasing content.

Example

<p>The formula for calculating force is: <var>F</var>=<var>m</var>*
<var>a</var> where m is the mass and a is accleration.</p>

Output

The formula for calculating force is: F=m*a where m is the mass and a is acceleration.