Prework Study Guide
✨ Open the Console to See What's Happening ✨
HTML
- The head element contains information about the webpage.
- The body element represents the visible content shown to the user.
- An attribute within the HTML tag defines additional information about an element.
- Viewport sets the default view for our webpage.
CSS
- A margin indicates how much space we want around the outside of an element.
- A padding indicates how much space we want around the content inside an element.
- Examples of a property include color and text-align.
- Examples of a value include blue and justify.
Git
- git status: checks what branch we are currently on.
- git checkout -b branch name: creates a new branch and switches to it.
- ideally, each commit contains an isolated, complete change.
- add: a command which adds modifications in the current working branch to the staging area.
JavaScript
- A variable is a named container that allows us to store data in our code.
- Control flow is the order in which a computer executes code in a script.
- A JavaScript file is read from top to bottom.
- It is common practice to indent the for loop code below the function name, within the curly brackets, to add visual structure to your code.