Prework Study Guide
✨ Open the Console to See What's Happening ✨
HTML
-
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.
-
100% width - means the screen should feel whatever display the website is opened in completely.
-
Heigtht 120px - means the height should not go beyond 120px on the screen, no mater how big it is.
-
background-color: blue -means the bsckground color should turn blue.
-
display: block - means that the element should start in a new line.
-
text-align: center - means put the text in the center of its parent element.
CSS
- The head element contains information about the webpage.
- The body element represents the visible content shown to the user.
- The "main" element holds all the contents of the body element.
- The "section" element defines a section in a document.
- the "H2" element is a header element, that tells the browser about the structure of your headings.
- the "ul" element stands for unordered list, it helps you group a collection of items in a meaningless none numerical order.
- the "li" stands for list item, it is used to represent an item in a list.
Git
- git status: Checks what branches we are currently on.
- git checkout -b feature/"branch-name": Creates a new branch and switches to it.
- git commit -m "commit message": commits the branch with a comment explaining what the branch is for.
- git pull origin: pulls the original branch, this helps you update to the most recent code in the project.
- git push origin feature/"name of branch": this pushes the current branch you are on into the proejct server in the cloud.
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.