Posts

Showing posts from September, 2023

Level no.24

Image
 JAVA-SCRIPT Lecture #2 Functions in Java-script Functions are blocks of reusable code in java-script that can be defined and executed when needed. In java script a function is executed when something invokes it means call it. Function Declaration : You can declare a function in java-script using "function" keyword, followed by function name and set of parentheses. Function name can contain letter, digits, lowercase, uppercase, underscore and dollar sign, and same rules followed for variables. Here is the example of function declaration. Syntax: function function-name ( ) { // code to be executed } Code:   (addition of two numbers) <!DOC TYPE> <html> <head> <title> Java-script </title> </head> <body> enter 1 number: <input type=" text" id="z"> <br> <br>  enter 2 number: <input type=" text" id="x"> <br> <br>  <button onclick= abc( )> Click </button&g

Level no.23

 JAVA-SCRIPT Lecture #1 Java-script is widely used programming language used for web developers.It is object-oriented programming language used my developers to make wed pages interactive. It is used for creating dynamically updated content. Java-script is used for animated graphics.  Syntax: <!DOCTYPE html> <head> <title></title> </head> <body> </body> <script> document.write(" enter your text here ") </script> </html> document.write("    ") is used in  java-script for printing text on screen. This term is written between <script> </script>. Code: <!DOCTYPE html> <head> <title></title> </head> <body> </body> <script> document.write("  Hello Coding   ") </script> </html> Output: Hello Coding  Declare Variable in Java-Script To declare variable in java-script. The term " var " is used.  Syntax: var variable name Cod

Level no.22

Image
 Hover in CSS It is commonly used in CSS to apply styles to elements when the user hovers their mouse over it.Hover can be used on all the terms but, not only on links. Is hover is a CSS property? The term "hover" is not a CSS property. It is a pseudo-class in CSS, used for applying styles to elements when user hovers or point their mouse over them. Syntax:  <style> Any html tag: "hover term"{ add desgins } </style> Code: <style> a:hover{ color: green;  } </style> In this code I applied hover pseudo-class to anchor tag by assigning it green color, when the user hovers their mouse text color changes it to green.

Level no.21

Image
CSS Properties  In this lecture we will study about properties of CSS, that define  how HTML element should be displayed on web-page and how we make our web-page layout defined and manageable. Here are some CSS properties: border: It is used for defining the border around the element. syntax:  border: 5px solid black; border-width: It is used for setting width of the border around the element. Syntax:  border-width: 10px; border-style: It is used for setting style of border, in which style the border will appear. Syntax: border-style:solid; border-color:  It is used for changing the color of the border around the HTML element. syntax: border-color: 5px   solid black; border-radius:  It is used for making border corners round, giving them round shape.You can make any side of the border round just by assigning the exact position. Syntax: border-radius: 39px;  You can gradually increase the value according to your preference. Width and Height: This property sets the dimensions of the