code

I. 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.

II. 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>