Chapter 13 Worksheet
Read and study Chapter
13 and answer the following questions.
1)
What are the two main ways to specify color in a
style sheet?
___________________________________ and
______________________________
2)
When using color names, can you make up any
color name? __________
3)
How many color names are supported by CSS3?
__________
4)
Computers make color by combining what three
colors of light?
_______________, _______________, and
_______________
5)
The amount of light for each color is typically
described on a scale of 0 to 255. The
closer the number gets to 255, the closer the resulting color gets to what
color? _______________
6)
Which of the following are examples of correct
ways to write RGB colors in style sheets?
Choose all that are correct.
a.
rgb(42%, 60%, 95%);
b.
color: #B226E7;
c.
color: red;
d.
color: #936;
e.
color: #FFF;
f.
all of the above
7)
When writing color values, instead of using
decimal (base-10 with digits 0-9) we use another numbering system (which is
base-16 and uses digits 0-F). It is _______________________.
8)
What CSS property do you use to specify
foreground color? ____________________.
9)
What CSS property do you use to specify
background color? ____________________.
10)
What CSS property do you use to specify border
color? ____________________.
11)
When using the CSS opacity property, you must
specify a number between 0 and __________?
12)
A gradient is a transition from one
_______________ to another.
13)
What kind of gradient changes color along a line
from one side of an element to the other?
________________________________________
14)
What kind of gradient starts at point and
spreads outward in a circular or elliptical motion?
________________________________________
15)
What is a pseudo-class?
_________________________________________________________
_____________________________________________________________________________
16)
Match the pseudo-class with the element it
targets:
a.
a:link _____
Links that have already been clicked
b.
a:visited _____
An element that is highlighted and ready for input
c.
a:hover _____
A link with a mouse pointer over it
d.
a:active _____
Links that have not yet been visited
e.
:focus _____
A link that is in the process of being clicked
17)
Which of these areas gets filled with a
background color? Choose all that apply.
a.
The area behind the content
b.
Any padding added around the content
c.
The area under the border
d.
The margin space around the element
e.
All of the above
18)
Which of these is NOT a way to specify the color
white in CSS?
a.
#FFFFFF b.
#FFF c. rgb(255,255,255)
b.
rgb(FF,FF,FF) e.
white f. rgb(100%, 100%,
100%)
No comments:
Post a Comment