Prework Study Guide
✨ Open the Console to See What's Happening ✨
HTML
- 'Head' elements include info about the webpage
- 'meta' elements contain info for the browser to read
- header elements eg H1, H2 - H6 are for headlines on the page with a larger font
- only use H1 once on the page
- 'img' elements insert a picture. src pulls an image from another location, while 'alt' gives a description of said image
- 'ul' creates an unordered list
- 'ol' creates an ordered list
- 'li' is used for each item on those lists
- 'elements' and 'tags' are sometimes used interchangably, but actually elemts refere to the whole content between the opening and closing tags. While tag refers just to the individual tag.
- The 'body' element refers to the visable content on the page
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.
- There are many wasy to add colours in CSS. such as the Hexidecimal code or hex #
- The border property assigns a border with a width of 5px that is solid and gray.
- The box-shadow CSS property adds shadow effects around an element's frame
=======
- Enter your CSS notes here
Git
- git status: checks what branch we are currently on
- git checkout -b branch-name: creates a new branch and switches to it
- git checkout main: moves to the main branch
- git pull origin main: pulls the latests main branch from github repo
- git add -A: to stage changes
- git commit: commits changes
- -m: tag associates a message with my commit
=======
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.