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.
CSS
- Margins indicate the space outside around the outside of an element.
- Padding indicates the space outside around the content inside of an element.
- CSS can be created in a seperate .css file to keep code in the HTML files more compact.
- CSS can be easily linked to a webpage by having the address for the sheet referenced inside of the header in the HTML file.
- To call the stylesheet use: "rel="stylesheet" href="./file-address"" inside of a link element.
Git
- In order to create new features it is recommended to do so in a new branch in your repository.
- Command: git checkout -b feature/new-branch
- When starting a new branch in your repository you must pull the main branch in order to begin work.
- Command: git pull origin main
- When saving to a repository you must first commit all changes in the current branch.
- Command: git commit -A
- You may then push your current branch.
- Command: git push origin current-branch/here
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.