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.
- The title is important for SEO and also appears on the tab.
- Semantic elements tell the browser how to structure the content.
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.
- CSS sets the style of everything in the .html file.
Git
- git status: checks what branch we are currently on
- git checkout -b "branch-name": creates a new branch and switches to it
- git add -A: adds all changed files in the working directory to git staging
- git commit -m "notes": commits the changes in the current branch to the repo
JavaScipt
- 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.
- JavaScript requires declaration of variables.
- Lists can contain multiple different types of data (string, number, etc.)
- JS functions are designated by {}, lines of code must end with ;