Prework Study Guide
Open the Console to See What's Happening!
HTML
- The head element contains information about the webpage.
- The head elements have the following metadata tags: title, style, base, link, meta, script.
- The body element represents the visible content shown to the user.
- The body elements can have associated tags so browser understands how to treat the content. Example includes: p to represent paragraph, ul represent unordered lists, ol represents ordered lists, li represents list items.
CSS
- Cascading Style Sheets (CSS), which is a programming language used by developers to define how webpage content is presented to users
- An entire stylesheet can be embedded directly in the HTML file using a style element in the head element.
- 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.
Git
- git clone: clones github repository locally
- git add -A: stages the changes
- git commit -m "description": commits changes to repository
- git status: checks what branch we are currently on
- git checkout -b branch-name: creates a new branch and switches to it
- git push origin feature/[branch name]: pushes all of our changes
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.
- Use conditional statements and loops to control the order in which code is executed, or if it is even executed at all.
- An if statement is a way of introducing decision-making into our code.
- When evaluating a dozen or even hundreds of variables at a time, JavaScript provides an array.