Prework Study Guide
HTML
- The head element contains info about the webpage.
- The body element represents the visable content shown to the user.
- The body element represents the visable content shown to the user.
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.
- The rel attribute specifies the realationship between the current document and the linked document.
- The href attribute specifies location - URL.
Git
- git status: checks what branch we are currently on
- git checkout -b branch name: creates a new branch and switches to it.
- git clean -f: removes unwanted files from our working directory.
- git add -A: stages a new file and commit all files in the working branch.
- git commit -m "commit message must be quoted": takes all the changes that have been made in the local environment and pushes it to the remote repository.
- git pull origin main: pulls changes from origin/main branch and merges them to the local environment checked out branch.
- Always pull before pushing!
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.
- JavaScript is case sensitive.
- JavaScript adds effects, interactivity and data communication to a webpage.