HTML <code> For Computer Code Explain
The HTML <code> element defines a piece of programming code.
Html Code:
<!DOCTYPE html>
<html>
<body>
<p>Programming code example:</p>
<code>
var x = 5;
var y = 6;
document.getElementById("demo").innerHTML = x + y;
</code>
</body>
</html>
Html Code Result:
Programming code example:
var x = 5; var y = 6; document.getElementById("demo").innerHTML = x + y;
var x = 5; var y = 6; document.getElementById("demo").innerHTML = x + y;
Post a Comment