ZVON > References > XHTML Reference
   Strict XHTML   Frameset | >> Strict << | Transitional |  [Comparison]

Go to Standard
Element: var
Attributes: | class | dir | id | lang | onclick | ondblclick | onkeydown | onkeypress | onkeyup | onmousedown | onmousemove | onmouseout | onmouseover | onmouseup | style | title | xml:lang |
Parents: | a | abbr | acronym | address | b | bdo | big | button | caption | cite | code | dd | del | dfn | div | dt | em | fieldset | h1 | h2 | h3 | h4 | h5 | h6 | i | ins | kbd | label | legend | li | object | p | pre | q | samp | small | span | strong | sub | sup | td | th | tt | var |
Children: | #PCDATA | a | abbr | acronym | b | bdo | big | br | button | cite | code | del | dfn | em | i | img | input | ins | kbd | label | map | object | q | samp | script | select | small | span | strong | sub | sup | textarea | tt | var |

Your browser display:

If called with: John


Program:


#!/usr/bin/python
import sys

print "Hello " + sys.argv[1] + "!"


Outputs: Hello John!

Source [  Open as XHTML document  ]

<p>If called with:
     <kbd>John</kbd>
</p>
<hr/>
<h3>Program:</h3>
<pre>

     <code> #!/usr/bin/python import sys print "Hello " +
          <var>sys.argv[1]</var> + "!"
     </code>

</pre>
<hr/>
<p>Outputs:
     <samp> Hello John! </samp>
</p>