Putting CSS to Work: Setting Colors with CSS Flashcards
1
Q
CSS Color Values
A
- By color names
- As RGB values
- As hexadecimal values
- As HSL values (CSS3)
- As HWB values (CSS4)
2
Q
div
A
- creates a little container (size can be modified (height and width))
3
Q
RGB Colors
A
- RGB color values are supported in all browsers.
- An RGB color value is specified with: rgb( RED , GREEN , BLUE ).
- Each parameter defines the intensity of the color as an integer between 0 and 255.
- For example, rgb(0,0,255) is rendered as blue, because the blue parameter is set to its highest value (255) and the others are set to 0.
4
Q
Hexadecimal Colors
A
- Hexadecimal color values are also supported in all browsers.
- A hexadecimal color is specified with: #RRGGBB.
- RR (red), GG (green) and BB (blue) are hexadecimal integers between 00 and FF specifying the intensity of the color.
- For example, #0000FF is displayed as blue, because the blue component is set to its highest value (FF) and the others are set to 00.
5
Q
Which one of the following color values has more red in it that the others?
A
- rgb(234,54,175)