Coding Intro Flashcards
Separate CSS, JS, HTML. What golden rule?
Separation of concerns!
Why separate your code (ex. JS, HTML…) what rule?
Best practice = separation of concerns = better organization
What exception can you put CSS inline in HTML?
Making an email look really good
Best resource for finding coding info
MDN
Mozilla developers network
What does HTML stand for?
Hyper text markup language
What does CSS stand for?
Cascading style sheets
Fixed vs responsive website?
Fixed = won’t change to adapt to other screens and websites.
Responsive = looks good across all devices, screens and browsers.
What are media queries?
Let’s you create specific style rules for different screen types and sizes.
Good for responsiveness.
What are the 3 cornerstones of responsiveness? Describe each.
Fluidity = everything as a % (sizes w/ screen)
Elasticity = fonts & texts are responsive units (em)
Content decisions = what you want to show based on screen size.
How do you make content decisions for different screen sizes?
Use CSS media queries.
How do you decide what media queries to use for content decisions?
Develop for mobile screens first and expand with size.
Start from largest size screen, then decrease until it doesn’t look good anymore. add media query