<var> Tag Examples
Examples of the <var>
tag in HTML 5
Example of variables with style
<p>The code for an HTML attribute consists of the
attribute name, an equal sign (<code>=</code>) and
the value of the property enclosed in quotes.</p>
<p style="padding-left: 3em"><var>attribute</var> ="<var>value</var>"</p>
<p>A boolean attribute with a <b>true</b> value is
coded with a value that matches the attribute name.</p>
<p style="padding-left: 3em"><var>attribute</var> ="<var>attribute</var>"</p>
<p>To indicate a <b>false</b> value the attribute should be completely omitted.</p>