HTML <code> element


<code> tag declares the content as programming codes.

<pre>
<code>
function draw()
{
	var canvas=document.getElementById('c');
	var gfx = canvas.getContext('2d');
	gfx.fillStyle='#aaaaaa';
	gfx.fillRect(0,0,400,40);
}
</code>
</pre>

function draw()
{
	var canvas=document.getElementById('c');
	var gfx = canvas.getContext('2d');
	gfx.fillStyle='#aaaaaa';
	gfx.fillRect(0,0,400,40);
}