<< Home

Including javascript inside html files

Javascript can be used in html files in 3 different ways

  1. Placed in the head of the html file
  2. Placed in the body of the html file
  3. By pointing to na external js file to use

Notice the similarities between this and css internal, inline and external.

For more information go to: http://www.w3schools.com/js/js_whereto.asp

For the assignment you need to demonstrate at least 2 practical examples of including javascript in html files.