Computer Code Reference Page

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

Code Example Keyboard Input Variables System Messages

"Code Examples"

HTML Program:


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

    

C Program:

        
            #include < stdio.h >
            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"

Area of Circle = pie * r2 (where r= radius of circle)

Speed = d / t (where d=distance , t=time)

Area of square = S2 (where S= side of square)


"System Message"

input : 10 + 20

output : 30

command :

output : list of files displayed here!!