DEV Community

Cover image for HTML tags | var
Carlos Espada
Carlos Espada

Posted on • Updated on


HTML tags | var

It is used to represent the name of a variable in a mathematical expression or in a programming context.

Normally browsers render them using the corresponding italic version of the font, although the style can be customized using CSS.

It should not be used for presentation purposes, for this you would have to use a <span> with associated styles or if it makes sense some other specific tag such as <em>, <i> or <q>.

  • Type: inline
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Top comments (0)

Super Useful CSS Resources

A collection of 70 hand-picked, web-based tools which are actually useful.
Each will generate pure CSS without the need for JS or any external libraries.