WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <var> Tag


Example

Format message in a document:

<var>Variable</var>
Try it yourself »

Definition and Usage

The <var> tag is an expression tag. It characterizes a variable.

Tip: This tag isn't belittled, yet it is conceivable to accomplish more extravagant impact with CSS.

All express tags:

Tag Description
<em> Renders as underscored text
<strong> Defines vital text
<code> Defines a bit of PC code
<samp> Defines test yield from a PC program
<kbd> Defines console input
<var> Defines a variable

Browser Support

Element
<var> Yes 12.0 Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

NONE.


Global Attributes

The <var> tag likewise underpins the Global Attributes in HTML.


Event Attributes

The <var> tag additionally underpins the Event Attributes in HTML.


Related Pages

HTML instructional exercise: HTML Text Formatting

HTML DOM reference: Variable Object