Computer Code Reference Page

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


Code Example

HTML Program:


        <html>
            <body>
               <p>Hello World</p>
            </body>
        </html>
        

C program:


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

JavaScript Program:

    
        console.log("Hello World")
    
    

Keyboard Input Examples

To copy text: ctrl+c
To paste text: ctrl+v
To save a file: ctrl+s


Variable in Mathematics

Speed=d / t
Area of Circle=π * r2


System Messages

Example 1:
Input: 5 × 10
Output: 15

Example 2:
Code: ("Hello World");
output: Hello World



Back to Top