Colors Flashcards

1
Q

What is the shorthand syntax for hexadecimal colors in CSS?

A

Hexadecimal notation for RGB with a six-digit sequence (e.g., #RRGGBB).

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

What does the range “0-9, A-F” represent in hexadecimal color values?

A

The range used to represent the values for each of the primary colors (red, green, blue) in hexadecimal format.

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

What does a six-digit hexadecimal color value translate to in RGB?

A

It is translated to RGB numerical ranges from 0-255 for red, green, and blue.

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

How is alpha transparency represented in a hexadecimal color value?

A

Alpha transparency is represented by two additional hexadecimal digits (e.g., #000000BF).

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

What is the hexadecimal representation for 0% alpha transparency?

A

00000000.

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

What is the hexadecimal representation for 75% alpha transparency?

A

000000BF.

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

What is the function used to define RGB colors in CSS?

A

rgb() color function.

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

What range of values can be used in the rgb() function for each color component?

A

Values from 0 to 255.

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

What range of values can be used in the rgb() function using percentages?

A

Percentages from 0% to 100%.

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

What is the purpose of the rgba() function in CSS?

A

It defines colors with an alpha (transparency) value, which can be expressed as a percentage or decimal.

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

What is the CSS syntax for defining a color with 50% alpha using rgba()?

A

rgba(0, 0, 0, 50%).

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

What is the decimal equivalent of 50% alpha transparency in the rgba() function?

A

rgba(0, 0, 0, 0.5).

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