ZVON > References > XHTML Reference
   Frameset XHTML   >> Frameset << | Strict | Transitional |  

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 | applet | b | bdo | big | blockquote | body | button | caption | center | cite | code | dd | del | dfn | div | dt | em | fieldset | font | form | h1 | h2 | h3 | h4 | h5 | h6 | i | iframe | ins | kbd | label | legend | li | noscript | object | p | pre | q | s | samp | small | span | strike | strong | sub | sup | td | th | tt | u | var |
Children: | #PCDATA | a | abbr | acronym | applet | b | basefont | bdo | big | br | button | cite | code | del | dfn | em | font | i | iframe | img | input | ins | kbd | label | map | object | q | s | samp | script | select | small | span | strike | strong | sub | sup | textarea | tt | u | 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>