HTML var tag

Html var element defines variable form of normal text. Equations normally use var element.


Equation of line

y = mx+b

y = m x + b

Try </>

Specific uses

Its common uses are given below

  • mathematical equations

  • programming syntax

  • constant in a program

Tag omission

Both opening and closing tags are necessary for the var element.

Global Attributes

All the global attributes are applicable on the var element.

Was this article helpful?




Get the newsletter