HTML Computer Code
There are different way to display the computer or programming related code in HTML. Following are some of the HTML tags which can use to display computer code.
<HTML>
<HEAD>
<TITLE>Different Computer Output</TITLE>
</HEAD>
<BODY>
<p>Following tag are used to display the Programming Code</p>
<Code>Computer Code</code>
<br>
<kbd>Keyboard Input</kbd>
<br>
<samp>Sample Text</samp>
<br>
<var>Computer Variable</var>
</BODY>
</HTML>
HTML Computer Code Example:
<!DOCTYPE HTML><HTML>
<HEAD>
<TITLE>Different Computer Output</TITLE>
</HEAD>
<BODY>
<p>Following tag are used to display the Programming Code</p>
<Code>Computer Code</code>
<br>
<kbd>Keyboard Input</kbd>
<br>
<samp>Sample Text</samp>
<br>
<var>Computer Variable</var>
</BODY>
</HTML>