The <code> tag displays the text in a different style to indicate that the displayed text is a computer code. By default, the content text specified within the code tag is displayed using a monospace font.

Syntax

<code>Code</code>

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML code tag</title>
</head>
<body>
<p>You should include <code>using System.IO</code> at the begining of your c# code for perform this task.</p>
</body>
</html>

Output

You should include using System.IO at the begining of your c# code for performing this task.