Sunday, August 10, 2008

The <kbd> and the <var> tag

The <kbd> tag
This is used to indicate text that is typed on the keyboard. Most browsers render the enclosed text in monospace font.
Example: <p>Enter the following text at the command prompt: <kbd>ping -n 1 -l 0 www.yourserver.com</kbd></p>
The <var> tag
This is used to indicate a variable. This element can be nested in the code element. The enclosed text is rendered in italics.

No comments: