HTML Colors (Chapter 10) Flashcards
(16 cards)
How can a color be specified in HTML?
A color can be specified by using a color name, an RGB value, or a HEX value.
What is an example of a color name in HTML?
Examples of color names include Red, Orange, Yellow, Cyan, and Blue.
How is a color name used in HTML coding?
An example coding of using a color name is: <body style="background-color:cyan">.
How many standard color names does HTML support?
HTML supports 140 standard color names.
What is the formula for specifying an RGB value in HTML?
The formula is rgb(red, green, blue).
What does each parameter in the RGB formula represent?
Each parameter defines the intensity of the color between 0 and 255.
What RGB value represents the color red?
The RGB value for red is rgb(255,0,0).
What RGB value represents the color black?
The RGB value for black is rgb(0,0,0).
What RGB value represents the color white?
The RGB value for white is rgb(255,255,255).
What is an example of RGB coding for cyan?
An example coding for cyan is: <body style="background-color:rgb(0,255,255)">.
How are shades of gray defined in RGB?
Shades of gray are defined using equal values for all three light sources.
What is the format for specifying a color using a HEX value in HTML?
The format is #RRGGBB.
What does each pair in the HEX format represent?
RR represents red, GG represents green, and BB represents blue.
What HEX value represents the color red?
The HEX value for red is #FF0000.
What is an example of HEX coding for cyan?
An example coding for cyan is: <body style="background-color:#00FFFF">.
What is an example of HEX coding for a shade of gray?
An example coding for a shade of gray is: <body style="background-color:#BBBBBB">.