Posts

Level no.26

Image
 HTML Character Entity References  What are Character Entity References? Character Entity References are way to represents characters that have special meaning in HTML documents.These references are used to include character that have reserved or  special significance in the markup language.We can say those words are reserved words.  For instance, less than sign having special meaning in HTML documents.  For "<" we use &lt;  For ">" we use &gt;  ® For "&" we use &amp; For "copyright logo ©" we use &copy; For "double quotation mark" we use &quot; For "trade mark logo  ™ "   we use &trade; For "registered mark logo  ® " we use &reg; For "pound  symbol" we use &pound; For "euro symbol" we use &euro; For "yen symbol" we use &yen; For  "apostrophe  symbol"  we use  &apos; Selection Tag Selection tag is used in html fo

Level no.25

 Java-Script Lecture #3 Q. What is the purpose of .innerHTML, .value and .textContent in java-script? .innerHTML, .value and .textContent are not used for same purpose in java-script, they serve different roles when working with HTML elements. They might have similar syntax because they are properties of   DOM elements in HTML, DOM stand for Document Object Model.  1. .innerHTML: This property is used to get or set the HTML content within an element. You can use this to retrieve  the HTML content inside an element or to change it by assigning new HTML content to it. 2. .value: This property is used with for elements like input fields, checkbox and radio buttons  to get or set their current values. You can use this to retrieve the current value of the input fields or to  set a new values, you can get or set the input fields values through java-script. 3. .textContent: This property is used to get or set the text content of the element. You can use this property to retrieve the plain tex

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

Level no.20

Image
 Header Tag in HTML Header tag is used for introduction of your content and define top section of your web-page or for  navigational links, logos, icons and images. A header tag can nest in another header tag. Syntax: <header> data should be here. </header>. Code: <!DOCTYPE html> <html> <head> <title>My Website </title> </head> <body> <header> <h1> My Website </h2> <p>This is the header of  your web-page</p> </header> </body> </html> Output: Navigation Tag in HTML Navigation tag <nav> is used to define section of web-page than contain navigational links.Links of web-page are in the navigation tag but not all the links are inside  the navigation tag. Structuring the content of the web-page and determine that the enclosed links are part of the navigation tag.It is act like a container for putting links and logos. Syntax: <nav> <ul> <li> <a href="#">