<code>

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

The CODE element defines computer code text.


<code>computer code</code>

Example


<p>Normal text, <code>Computer code,</code> Normal text,</p>

Output

Normal text, Computer code, Normal text,


<pre><code>
function PopTag() { 

	if (!document.getElementById) {

		alert("Hello");
		return;

	}

}
</code></pre>

Output

function PopTag() { 

	if (!document.getElementById) {

		alert("Hello");
		return;

	}

}