Prework Study Guide
✨ Open the Console to See What's Happening ✨
HTML
- HTML = Hypertext Markup Language gives the content structure.
- Meta is elements that contain information about the page that is used by the browser.
- The head element contains information about the webpage.
- The body element represents the visible content shown to the user.
- Title is in the tab of a browser.
- Element refers to the entire element from opening tag to closing tag.
- Tag refers to only what appears inside the angle brackets.
CSS
- CSS = Cascading Style Sheets which gives the content style.
- 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.
- Declarations contain two components: The property we want to apply and the value of the property (color:
blue)
Git
- Git is software on your computer that tracks changes that you make to your code.
- git status: checks what branch we are currently on
- git checkout -b 'branch-name': checkout moves to a new branch, -b creates the new branch,
'branch name' is the name of the new branch
- git add -A to commit all files in the working branch. (commit is to save changes)
- git commit -m "message here" -m is to associate a message with our commit
- git pull origin main: checks our current branch is up to date before opening a pull request
- git push origin 'branch name': push all of our changes, for the branch
JavaScript
- JavaScript handles logic and allows users to interact with a website.
- JavaScript is case sensitive. It is an object-oriented programming (OOP) language.
- A variable is a named container that allows us to store data in our code.
- Control Flow dictates that JS files are executed from top to bottom.
- A function is simply a set of instructions that tells the computer how to perform a task.
It does not automatically run. You must call it by name in order to execute it. ie: Define & Call.
- FOR LOOP: 3 important statements.
- First statement determines the starting point for our loop.
- Second statement is the condition. This determines how long the loop will keep running.
- Third statement is what allows the array to iterate over each item.