Intro Info Flashcards

1
Q

What is the internet?

A

It’s a wire that connects servers to client devices and transfers data upon request from the client side devices via the https protocol.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Someone who writes code that enables a server to listen to requests and generate responses?

A

Back-end developer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Someone who writes code that runs on client side devices?

A

Front-end developer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Someone who writes both front and back-end code?

A

Full stack web developer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Separation of Concerns?

A

Keeping HTML, CSS and JS separate to be organized, and easier to use and update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is HTML?

A

Hyper Text Markup Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does HTML handle?

A

Content/Structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does CSS handle?

A

Style

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does JS handle?

A

Behavior / Interaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Progressive Enhancement?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Where does our CSS go? Inline, in the head or a separate file?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What’s above the fold?

A

The part you can see on a page when it renders, before you have to start scrolling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you connect the CSS to the HTML?

A

You can add a link tag inside the HTML head: <link></link>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you display CSS syntax (spelling and grammar rules)?

A

Selector, Property, Property Value and colons and semi-colons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is CSS declaration?

A

The Property and the Property Value make up the Declaration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What order is CSS written in?

A

CSS is read top to bottom, so what is above can be overwritten by what’s below if there are any duplicates. What’s at the bottom will be overwrite what’s on the top. But points of specificity can affect that.

17
Q

What does CSS stand for?

A

Cascading Style Sheet

18
Q

Why do we link to a separate CSS file?

A

Organization, separation of concerns

19
Q

What color values can we use in CSS?

A

Word, Hex, RGBa, HSLa

20
Q

HSLa?

A

Hue Saturation Lightness

21
Q

RGBa?

A

Red Green Blue alpha (which handles transparency)

22
Q

How do you use fonts in CSS?

A

Fonts are files – The browser needs the file to know how to render the file. You can use Google fonts as they host it on their cdn - content delivery network) or buy your own. (Or create like what I’ll be doing soon!!!!!) If you want a font, link to it in your head. THEN link to your css file. Use backup or fallback fonts if we cannot get the chosen font.

23
Q

Why does linking to the font come before linking to the CSS file?

A

Because we need access to the font before we can use it to display on the page.

24
Q

Why do we use multiple fonts?

A

They are fallbacks in case that font doesn’t load

25
Q

Why shouldn’t we use all different weights?

A

Speed – it will take longer for the site to load because it’s more files to download so just select the size you will be using.

26
Q

What is the direct parent-child relationship designation?

A

> (carrot)

27
Q

How are IDs used?

A

IDs are unique and can only target one element at a time, designated using a # and a descriptive name.

28
Q

How are Classes used?

A

Classes are used to target multiple elements at the same time. It’s designated using a dot and then the descriptive class name.

29
Q

How many Classes does your selector need to override an ID?

A

10 classes - because classes are worth 10 points and IDs are worth 100. Some developers don’t use IDs at all, just classes so that the CSS doesn’t break.

30
Q

What do we mean by keep your code DRY?

A

Don’t Repeat Yourself.

31
Q

What does !important (bang important) mean?

A

!important adds a 1000 points of specificity so you really won’t be able to override it with anything else. You can use this when you do not have enough time to figure out specificity.