[Code Examples] [Keyboard Input] [Variables] [System Messages]

Computer Code Reference Page

In HTML, we can represent programming code, variables, keyboard input, and system responses using special tags.

Code Examples

Below are “Hello World” programs written in different languages:

HTML



  
    

Hello World

C Language


#include 
int main() {
    printf("Hello World");
    return 0;
}
    

JavaScript



    

Keyboard Input Examples

Common keyboard shortcuts:

Copy = Ctrl + C

Paste = Ctrl + V

Save = Ctrl + S

Variables in Mathematics

We use to show mathematical variables:

Area of Circle = π × r2

Speed = d / t

System Messages

Sample input and output from a program:

Input: 5 + 10

Output: 15

Back to Top