HTML Computercode

Example

<!DOCTYPE html>
<html>
<body>

<h2>Computer Code</h2>
<p>Some programming code:</p>

<code>
x = 2;<br>
y = 2;<br>
z = x + y;
</code>

</body>
</html>

Output

Computer Code

Some programming code:

x = 2;
y = 2;
z = x + y;

Example

<!DOCTYPE html>
<html>
<body>

<h2>Computer Code</h2>
<p>Some programming code:</p>

<code>
x = 7;<br>
y = 6;<br>
z = x + y;
</code>

</body>
</html>

Output

Computer Code

Some programming code:

x = 7;
y = 6;
z = x + y;
Updated: February 12, 2019 — 4:05 am
Java Script © 2019