Intro Info Flashcards
What is the internet?
It’s a wire that connects servers to client devices and transfers data upon request from the client side devices via the https protocol.
Someone who writes code that enables a server to listen to requests and generate responses?
Back-end developer
Someone who writes code that runs on client side devices?
Front-end developer
Someone who writes both front and back-end code?
Full stack web developer
What is Separation of Concerns?
Keeping HTML, CSS and JS separate to be organized, and easier to use and update
What is HTML?
Hyper Text Markup Language
What does HTML handle?
Content/Structure
What does CSS handle?
Style
What does JS handle?
Behavior / Interaction
What is Progressive Enhancement?
The idea that the core of the site, the most important part of the site is the HTML content, then we wrap that content with a layer of CSS for the presentation and then apply a thin layer of candy coating as the client-side scripting/ Javascript. Content is king - it helps with accessibility and folks with low-speed internet access so it loads more easily.
Where does our CSS go? Inline, in the head or a separate file?
Duh, a separate file - for separation of concerns. But there is a time when you can use inline CSS - in emails only because they don’t have access to external stylesheets yet. You can do styling in the head ONLY when you work at amazon lol so their pages load quicker - critical path CSS that loads above the fold for a slight increase in performance (otherwise they lose millions if the page doesn’t load).
What’s above the fold?
The part you can see on a page when it renders, before you have to start scrolling.
How do you connect the CSS to the HTML?
You can add a link tag inside the HTML head: <link></link>
How do you display CSS syntax (spelling and grammar rules)?
Selector, Property, Property Value and colons and semi-colons
What is CSS declaration?
The Property and the Property Value make up the Declaration