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 body element is split into 3 basic sections. Header, Main, and Footer.
- The header element is used to show information at the top of the page.
- The main element is used to display the main message of the page.
- The footer element is used to show information at the bottom of the page.
- The ul and li elements are used to make an unnumbered list.
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.
- Using CSS we can apply rules for HTML elements in order to style them. This prevents us from having to retype styling within HTML repeatedly.
- The color and background-color syntax is used to edit the the color of your text and the color of the screen behind the text respectively.
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 modifications to the working branch upon next commit.
- git commit -m "your text here": The current working branch will be updated with the current version of your code on the workstation.
- git pull origin main: Pulls the current main branch from the repository. Do this to make sure you are working on the latest version of the project.
- git push origin "working branch name here": Pushes your changes to a new or existing branch.
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 function is a set of instructions that tells the computer how to perform a certain task.