HTML <var> tag

Html <var> tag : Definition

• The HTML <var> tag is used to define the variable in a programming context or in a mathematical expression.

• The content within <var> tag is specifice in italic font by default in most of the browsers, and that can be modified using CSS properties.



Html <var> tag example

<!DOCTYPE html>
<html>
  <head>
    <title>Html var tag example</title>
  </head>
  <body>
<video width="320" height="240" controls>
  <source src="try_it/media/tiger-roar.mp4" type="video/mp4">
  <source src="try_it/media/tiger-roar.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video> 
  </body>
</html>

Output: