HTML <var> tag
When writing in HTML, the <var> tag is an inline element used to designate a variable. It is useful when you are writing a page that deals with programming or mathematical expressions. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.
This element is unique in that it is a phrase tag, which indicates that a section of text has structural meaning.
Example of <var> code
<p>Example of a regular sentence with a <var>variable</var> contained in it.</p>
Example of a regular sentence with a variable contained in it.
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <var> tag does not have any unique attributes, it does utilize all of the standard attributes.
|All versions||All versions||All versions||All version||All versions||All versions|