This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

var

Summary

Defines a variable.

Overview Table

DOM Interface
HTMLElement

Examples

This example uses the VAR element to render the word “filename” in italic type.

Enter the <VAR>filename</VAR> in the dialog box.

Notes

Remarks

The actual formatting of a VAR element is determined by the browser. Windows Internet Explorer renders the VAR element in italic type. The actual formatting of a VAR element is determined by the mode used to render it.

Standards information

HTML information

{

Related specifications

HTML 5.1
W3C Working Draft
HTML 5
W3C Recommendation
HTML 4.01
W3C Recommendation

Attributions