Introduction to CSS3 Week 3 answers
Introduction to CSS3 Week3
University of Michigan
Final Quiz Quiz
1. The default value for the position property is:
a, fixed
b, static
c, relative
d, absolute
Ans: b
2. If you want your navigation bar to remain visible, even when the user scrolls downward, you should use which type of positioning?
b, static
c, fixed
d, absolute
Ans: c
3. Sometimes elements overlap one another. Which property specifies the stacking order of the elements? (A high value means it is more likely to be place in front of another.) ONLY PROVIDE THE PROPERTY, NOT A VALUE.
Ans: z-index
4. What are the four principles of Accessibility?
a. PORE
b. USE
c. POUR
d. WEBAIM
Ans: c
5.What is wrong with this code?
div{
position: relative;
left: 10px;
}
a. The code works, but the left property is not necessary since relative elements don't allow offsets
b. There is nothing wrong with this code.
c. "relative" is not a valid option for position
Ans: b
6. What is wrong with this code?
div{
position: static;
left: 10px;
}
a, The code works, but the left property is not necessary since static elements don't allow offsets
b, There is nothing wrong with this code.
c, "static" is not a valid option for position
Ans: a
7. Which CSS3 property allows you to change property values smoothly over a given duration?
a, change
b, hover
c, focus
d, transition
Ans: d
9. Which of the following is the proper syntax for a pseudo-class?
a.) selector->pseudo-class {
property:value;
}
b.) :pseudo-class {
property:value;
}
c.) selector::pseudo-class {
property:value;
}
d.) selector:pseudo-class {
property:value;
}
Ans: d
10. Which of the following rules styles the first paragraph in each div?
a, div:first-child p{
color: blue;
}
b, div p{
color: blue;
}
c, div >p{
color: blue;
}
d, div p:first-child {
color: blue;
}
Ans: d
11. Which rule will change the text color of p elements with the class "highlight" when hovered over?
a, p.highlight:hover{
color:green;
}
b, p:hover{
color:green;
}
c, p:hover{
color:green;
}
d, p:hover > highlight{
color:green;
}
Ans: a
Related Posts
Subscribe Our Newsletter
0 Comments to "Introduction to CSS3 Week 3 answers"
Post a Comment
Share your view here!!