Basic typography & color Flashcards

1
Q

what is a color assigned in html

A

html keyword and hex value

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

rgb

A

style method for color

.color-rgb {
color: rgb (amount of red #, amount of green #, amount of blue #)
}

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

rgba

A

.color-rgba {
color: rgba (amount of red #, amount of green #, amount of blue #, amount of alpha)

alpha –> level of transparency of the color

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

hex codes

A

.color-hex {
color: #1B9AAA;
}

colors correspond to a hex number

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

measurement unit types

A

fixed
relative
fluid

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

fixed

A

*small details like border, padding margin –> anything that cannot change
set units that never change

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

relative

A

*for fonts
set units, determined by values set on the parent element or the root element (<html>)

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

fluid

A

*for containers
scales upon viewport resizing based on various factors

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

fixed/absolute units

A

px

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

relative units

A

1em –> 1 times font size of parent element
1rem –> 1 times font size of the :root element (<html> usually 16px)

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

fluid units

A

1% –> 1% of parent element’s width and height **for font, 1% of elements assigned font size

1vh –> 1/100 of the height of the viewport (browser window)

1vw –> 1/100 of the width of the viewport (browser window)

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