HTML Programming code Formatting Code For Website - Learn About Website | DaddyFile

0

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;

Post a Comment

 
Top