Computer Code Reference

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

Code Examples Keyboard Input Variables System Messages

Code Examples

C

        
            #include <stdio.h>
            int main() {
            printf("Hello World");
            return 0;
            }
        
    

JavaScript

        
            console.log("Hello World");
        
    

HTML

        
            <p> Hello World </p>
        
    

Keyboard Input Examples

To copy text: Ctrl + C

To paste text: Ctrl + V

To save a file: Ctrl + S


Variables in Mathematics

Area of Circle = π × r2

Speed = d / t


System Messages

Example 1

Input: 5 + 10

Output: 15

Example 2

Command: dir

Output: List of files displayed here


BACK TO TOP