asp.net.ph

Skip Navigation Links

VAR Element | VAR Object

Language References


Denotes a variable.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

The VAR element specifies text that renders differently from the surrounding text, to show that it is a variable.

This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose.

Browsers normally display <var> elements in a fixed-width italic font.

NOTE: Both start and end tags are required.

Attributes

The <var> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

The following shows how the VAR element may be used.

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

which would render on a Web page as

Enter the filename in the dialog box.
See Also

CODE   PRE   SAMP



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note