<code>: The HTML Code Element
1 Description
The HTML <code>
element is used to
encapsulate a small amount of computer code, source code,
computer syntax or something similar. Most web browsers
will style the code element in the web browsers default
monospace font.
See Also
The <pre>
element.
2 Examples
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>C Hello World Tutorial</h1>
<p>
All c programs will begin with a <code>main</code> function which
returns an <code>int</code> and because it does not accept any
parameters the keyword <code>void</code> will be placed in the
parameter list.
</p>
</body>
</html>
This document was last updated: