The <var> Tag in HTML 5

The <var> tag encloses a variable that is to be replaced. It is often used in a block of computer code to indicate . The var element contains the name of the variable and is one of the phrase elements in HTML.

On this site, a variable is styled with a red color and italic font like this: variable. For example (from the definitions of attribute and boolean attribute):

The code for an HTML attribute consists of the attribute name, an equal sign (=) and the value of the property enclosed in quotes.

attribute ="value"

A boolean attribute with a true value is coded with a value that matches the attribute name.

attribute ="attribute"

To indicate a false value the attribute should be completely omitted.

This is an actual working example of the <var> tag example code below.