Skip to main content

Home/ Groups/ Learning Library
Sunny Jackson

HTML body background Attribute - 0 views

Sunny Jackson

HTML5 Introduction - 0 views

  • <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> The content of the document...... </body> </html>
Sunny Jackson

HTML Reference - 0 views

  • <b> Defines bold text
  • <body> Defines the document's body
  • <br> Defines a single line break
  • ...7 more annotations...
  • <button> Defines a clickable button
  • <cite> Defines the title of a work
  • <details>New Defines additional details that the user can view or hide
  • <dialog>New Defines a dialog box or window
  • <div> Defines a section in a document
  • <dt> Defines a term/name in a description list
  • <em> Defines emphasized text 
Sunny Jackson

CSS Text - 0 views

  • text-align:justify;
Sunny Jackson

JavaScript for Loop - 0 views

  • Loops execute a block of code a specified number of times, or while a specified condition is true.
  • In JavaScript, there are two different kind of loops: for - loops through a block of code a specified number of times while - loops through a block of code while a specified condition is true
  • The for Loop The for loop is used when you know in advance how many times the script should run. Syntax for (variable=startvalue;variable<=endvalue;variable=variable+increment) { code to be executed }
Sunny Jackson

JavaScript while Loop - 0 views

  • The while Loop The while loop loops through a block of code while a specified condition is true. Syntax while (variable<=endvalue)   {   code to be executed   }
  • The do...while Loop The do...while loop is a variant of the while loop. This loop will execute the block of code ONCE, and then it will repeat the loop as long as the specified condition is true. Syntax do   {   code to be executed   } while (variable<=endvalue);
Sunny Jackson

JavaScript Break and Continue Statements - 0 views

  • The break Statement The break statement will break the loop and continue executing the code that follows after the loop (if any).
  • <script type="text/javascript"> var i=0; for (i=0;i<=10;i++)   {   if (i==3)     {     break;     }   document.write("The number is " + i);   document.write("<br />");   } </script>
  • The continue Statement The continue statement will break the current loop and continue with the next value.
  • ...1 more annotation...
  • <script type="text/javascript"> var i=0 for (i=0;i<=10;i++)   {   if (i==3)     {     continue;     }   document.write("The number is " + i);   document.write("<br />");   } </script>
Sunny Jackson

JavaScript For...In Statement - 0 views

  • JavaScript For...In Statement The for...in statement loops through the elements of an array or through the properties of an object. Syntax for (variable in object)   {   code to be executed   }
  • The code in the body of the for...in loop is executed once for each element/property.
Sunny Jackson

JavaScript Events - 0 views

  • Events are actions that can be detected by JavaScript.
  • Every element on a web page has certain events which can trigger a JavaScript. For example, we can use the onClick event of a button element to indicate that a function will run when a user clicks on the button. We define the events in the HTML tags.
  • Examples of events: A mouse click A web page or an image loading Mousing over a hot spot on the web page Selecting an input field in an HTML form Submitting an HTML form A keystroke
  • ...5 more annotations...
  • Events are normally used in combination with functions, and the function will not be executed before the event occurs!
  • The onLoad and onUnload events are triggered when the user enters or leaves the page.
  • The onFocus, onBlur and onChange events are often used in combination with validation of form fields
  • onSubmit The onSubmit event is used to validate ALL form fields before submitting it.
  • onMouseOver and onMouseOut are often used to create "animated" buttons.
Sunny Jackson

JavaScript Try...Catch Statement - 0 views

  • The try...catch statement allows you to test a block of code for errors.
  • The try...catch Statement The try...catch statement allows you to test a block of code for errors. The try block contains the code to be run, and the catch block contains the code to be executed if an error occurs. Syntax try   {   //Run some code here   } catch(err)   {   //Handle errors here   } Note that try...catch is written in lowercase letters. Using uppercase letters will generate a JavaScript error!
  • The throw Statement The throw statement can be used together with the try...catch statement, to create an exception for the error
Sunny Jackson

JavaScript Throw Statement - 0 views

  • The Throw Statement The throw statement allows you to create an exception. If you use this statement together with the try...catch statement, you can control program flow and generate accurate error messages. Syntax throw exception
  • throw is written in lowercase letters. Using uppercase letters will generate a JavaScript error!
Sunny Jackson

JavaScript Special Characters - 0 views

  • In JavaScript you can add special characters to a text string by using the backslash sign.
  • Insert Special Characters The backslash (\) is used to insert apostrophes, new lines, quotes, and other special characters into a text string.
  • In JavaScript, a string is started and stopped with either single or double quotes.
  • ...4 more annotations...
  • place a backslash (\) before each double quote
  • This turns each double quote into a string literal:
  • JavaScript will now output the proper text string
  • Code Outputs \' single quote \" double quote \\ backslash \n new line \r carriage return \t tab \b backspace \f form feed
Sunny Jackson

JavaScript Guidelines - 0 views

  • JavaScript is case sensitive - therefore watch your capitalization closely when you create or call variables, objects and functions.
Sunny Jackson

Julian Huxley - 0 views

« First ‹ Previous 121 - 140 Next › Last »
Showing 20 items per page