DEV Community

Cover image for HTML tags | var
Carlos Espada
Carlos Espada

Posted on • Edited 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)