JS+HTML

  • Only copy paste code you have written.

  • Copy pasting from a pdf file is no bueno.

  • JS is similar to css in that they both modify the original html file.

  • It is best to keep JavaScript code in its own JavaScript file. JavaScript files are text files (like HTML pages and CSS style sheets), but they have the . j s extension.

  • The HTML

  • If you view the source code of the page in the browser, the JavaScript will not have changed the HTML, because the script works with the model of the web page that the browser has created.

table of contents