HTML var tag
HTML

HTML var tag

Editorial Team
Editorial Team

Follow us on Discord or Telegram to get access to free tutorials and updates.

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.