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.
- HTML attribute defines additional information about an element and
are always defined in the beginning element, never the closing.
- HTML attribute example: lang="en", means language for website is English.
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.
- When using external file one must use a (link) element to connect it.
- (rel) attribue indicates the relationship between the current and linked document resource.
- (href) attribute indicates the location (URL) of the external resource.
Git
- git status: checks what branch we are currently on
- git checkout -b branch-name: creates a new branch and switches to it
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.
- JavaScript files are executed from top to bottom, so order matters.
- After defining a function, we must call it in the code in order for it to execute.