Coding Bootcamp Prework Study Guide
HTML
- Gives content and basic framework to webpages.
- The head element contains information about the webpage.
- The body element represents the visible content shown to the user.
- Elements have opening and closing tags.
- HTML document is enclosed by html opening and closing tags.
- Attributes define additional information about elements.
CSS
- Gives color and style to content.
- Add link element to HTML file to link separate CSS file.
- A margin indicates how much space we want around the element.
- A padding indicates how much space we want around the content inside an element.
- Declaration: a rule applied to element or attribute
- Selector: defines element or attribute to which declaration applies
Git
- git clone SSH key: clones GitHub repo to local computer
- 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 changes to staging area
- git commit -m "commit message": adds commits to local branch
- git pull origin main: pulls new changes from main branch of GitHub repo
- git push origin branch-name: pushes new changes to remote branch
JavaScript
- String: sequence of text
- Boolean: true/false value
- Variable: named containter that stores data in our code
- Array: object that stores multiple values in same container
- Index: location of data item in array
- Control flow: order in which computer executes code
- Comment: text that is ignored by the computer
- if statement: only runs if condition is true otherwise is ignored
- for loop: allows single block of code to be executed over and over
- A function must be called.