HTML Colors (Chapter 10) Flashcards

(16 cards)

1
Q

How can a color be specified in HTML?

A

A color can be specified by using a color name, an RGB value, or a HEX value.

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

What is an example of a color name in HTML?

A

Examples of color names include Red, Orange, Yellow, Cyan, and Blue.

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

How is a color name used in HTML coding?

A

An example coding of using a color name is: <body style="background-color:cyan">.

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

How many standard color names does HTML support?

A

HTML supports 140 standard color names.

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

What is the formula for specifying an RGB value in HTML?

A

The formula is rgb(red, green, blue).

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

What does each parameter in the RGB formula represent?

A

Each parameter defines the intensity of the color between 0 and 255.

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

What RGB value represents the color red?

A

The RGB value for red is rgb(255,0,0).

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

What RGB value represents the color black?

A

The RGB value for black is rgb(0,0,0).

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

What RGB value represents the color white?

A

The RGB value for white is rgb(255,255,255).

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

What is an example of RGB coding for cyan?

A

An example coding for cyan is: <body style="background-color:rgb(0,255,255)">.

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

How are shades of gray defined in RGB?

A

Shades of gray are defined using equal values for all three light sources.

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

What is the format for specifying a color using a HEX value in HTML?

A

The format is #RRGGBB.

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

What does each pair in the HEX format represent?

A

RR represents red, GG represents green, and BB represents blue.

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

What HEX value represents the color red?

A

The HEX value for red is #FF0000.

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

What is an example of HEX coding for cyan?

A

An example coding for cyan is: <body style="background-color:#00FFFF">.

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

What is an example of HEX coding for a shade of gray?

A

An example coding for a shade of gray is: <body style="background-color:#BBBBBB">.