Skip to content

Instantly share code, notes, and snippets.

@sebastianfrelle
Created February 20, 2018 10:13
Show Gist options
  • Save sebastianfrelle/8ad3c673e7f73d69a70953f89ff2811a to your computer and use it in GitHub Desktop.
Save sebastianfrelle/8ad3c673e7f73d69a70953f89ff2811a to your computer and use it in GitHub Desktop.

Exercise 1

Part 2

  • 7 common HTML elements
    • head, html, div, span, p, body, title, table, tr, td...
  • Difference between class and id HTML attributes
    • class can be used multiple times per page
    • Each element can have multiple classes
    • id only once per page
  • DOM
    • Document Object Model; defines structure for web page.
    • The hierarchy that the browser compiles to render its own internal representation of a web page and how its objects fit together.
  • Javascript's Array corresponds to Python's list.
  • Javascript's object literal corresponds to Python's dict (although not really).
  • Did the things with the squares.

Part 3

  • Set up a web server with python3 -m http.server 8887.
  • Set up a web page at https://sebastianfrelle.github.io.

Part 4

  • Built the web page and published it to https://sebastianfrelle.github.io.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment