This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

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