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.
- Elements within the body or head elements are called child elements. The head and body elements are parent elements.
- Setting the viewport sets the user's visible area of a webpage and varies with the device.
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.
- An external style sheet is the most common method of writing CSS code. It is preferred because it allows developers to keep all CSS Rules in a separate file.
- A link element within the HTML file creates the connection to the external CSS file.
- You can define colors by using semantic references, such as 'gray', or by its hexadecimal code, or hex #.
GIT
- git status: checks what branch we are currently on
- git checkout -b branch-name: creates a new branch and switches to it
JavaScript
- JavaScript coding makes web pages interactive.
- 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.
- An array is a structure that allows you to store multiple values in a single reference.