[Code Examples] [Keyboard Input] [Variables] [System Messages]
In HTML, we can represent programming code, variables, keyboard input, and system responses using special tags.
Below are “Hello World” programs written in different languages:
Hello World
#include
int main() {
printf("Hello World");
return 0;
}
Common keyboard shortcuts:
Copy = Ctrl + C
Paste = Ctrl + V
Save = Ctrl + S
We use to show mathematical variables:
Area of Circle = π × r2
Speed = d / t
Sample input and output from a program:
Input: 5 + 10
Output: 15