GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing www.tutorialspoint.com — HTML Computer Code Elements
Selected Reading
HTML Computer Code ElementsHTML computer code elements (tags) provide unique formatting and text styles for different types of code-related messages, such as keyboard input, preformatted text, code snippets, variables, and sample outputs. The computer code elements are listed as follows: HTML <kbd> ElementThe ExampleLet us now see an example to implement the <!DOCTYPE html>
<html>
<body>
<h2>Example of kbd Tag</h2>
<p>Use the following shortcut keys:</p>
<p><strong>Cut</strong> <kbd>CTRL</kbd>+<kbd>X</kbd></p>
<p><strong>Copy</strong> <kbd>CTRL</kbd>+<kbd>C</kbd></p>
<p><strong>Paste</strong> <kbd>CTRL</kbd>+<kbd>V</kbd></p>
<p><strong>Undo</strong> <kbd>CTRL</kbd>+<kbd>Z</kbd></p>
</body>
</html>
HTML <pre> ElementThe ExampleLet us now see an example to implement the <!DOCTYPE html>
<html>
<body>
<h2>Example of pre Tag</h2>
<pre>
This is a demo text
and will appear
in the same format as
it
is visible
here. The pre tag displays
the text in a fixed-width
font. It preserves
both spaces and
line breaks as you can see
here.
</pre>
</body>
</html>
HTML <code> ElementThe ExampleLet us now see an example to implement the <!DOCTYPE html>
<html>
<body>
<h1>Example of code Tag</h1>
<h2>C++</h2>
<code>
#include
<iostream>
</code>
<h2>C</h2>
<code>
#include
<stdio.h>
</code>
</body>
</html>
HTML <var> ElementThe ExampleLet us now see an example to implement the <!DOCTYPE html>
<html>
<body>
<h2>Example of var Tag</h2>
Sample equation <var>2x</var> - <var>2z</var> = <var>3y</var> + 9
</body>
</html>
HTML <samp> ElementThe ExampleLet us now see an example to implement the <!DOCTYPE html>
<html>
<body>
<h2>Exam Results</h2>
<p><s>Result would be announced on 6th June.</s></p>
<samp>New date for results is 7th June.</samp>
</body>
</html>
HTML Computer Code ElementsHere is the list of the computer code tags along with their descriptions used for defining user input and computer code:
Advertisements
| ||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |