In HTML, we can represent programming code, variables,
keyboard input, and system responses using special tags.
<pre>
<code>
<html>
<body>
<p>Hello World</p>
</body>
</html>
</code>
</pre>
<pre>
<code>
#include<stdio.h>
int main(){
printf("Hello World");
return 0;
}
</code>
</pre>
<pre>
<code>
console.log("Hello World");
</code>
</pre>
To copy text:
<kbd>
Ctrl</kbd>
+<kbd>
C<kbd>
To paste text:
<kbd>
Ctrl</kbd>
+<kbd>
v<kbd>
To save text:
<kbd>
Ctrl</kbd>
+<kbd>
s<kbd>
Area of Circle = π ×
<var>
r2Speed =
<var>
d</var>
/<var>
t</var>
Example 1:
Input: 5 + 10
Output:
<samp>
15<samp>
Example 2:
Command: dir
Output:
<samp>
List of files displayed here<samp>