Introduction to HTML and JavaScript

Expectations and Prerequisites

Since this is not an intro programming course, we will assume that you are already familiar with at least one other programming languageā€”most likely, something like Python, Java, C++, R, or MATLAB. We also assume that you are familiar with elementary programming concepts like variables, functions, control flow statements (e.g. "if" statements, "for" loops, and "while" loops), and data types (e.g. integers, floating point numbers, strings, and arrays). If programming is new to you, the assignments in this course may be quite difficult, and you should expect to put in quite a bit of extra work in these next couple weeks to catch up with the rest of the class.

Summary

The "Introduction to HTML and JavaScript" topic consists of eight lessons. The goal is to help you teach yourself HTML and JavaScript. The first lesson will show you how to set up the most basic HTML and JavaScript application. The next two lessons provide a quick look at the structure of HTML, CSS, and JavaScript. And the following four lessons will summarize the similarities and differences JavaScript has with other languages; you should use these as a supplement to your other research, not as a replacement for it. The final lesson will be a big self-test. This will help you gauge how well you are learning the language, and whether your are ready to move onto the next topics.

Lessons

  1. Setting Up a Development Environment
  2. HTML and CSS: The Basics
  3. JavaScript as a Second Language: A Primer
  4. Typing in JavaScript
  5. Functions in JavaScript
  6. Common Bugs in JavaScript
  7. [optional] Background and Rationale
  8. Self-Test