The default value for the position property is:
1) fixed
2) relative
3) absolute
4) static
ANS: 4) static
What is wrong with this code?
div{
position: static;
left: 10px;
}
1) There is nothing wrong with this code.
2) "static" is not a valid option for position
3) The code works, but the left property is not necessary since static elements don't allow offsets
ANS: 3) The code works, but the left property is not necessary since static elements don't allow offsets
If you want your navigation bar to remain visible, even when the user scrolls downward, you should use which type of positioning?
1) static
2) relative
3) absolute
4) fixed
ANS: 4) fixed
Which of the following is the proper syntax for a pseudo-class?
ANS:
selector:pseudo-class {
property:value;
}
Which of the following rules styles the first paragraph in each div?
ANS:
div p:first-child {
color: blue;
}
Which CSS3 property allows you to change property values smoothly over a given duration?
1) focus
2) hover
3) change
4) transition
ANS: 4) transition
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
Which rule will change the text color of p elements with the class "highlight" when hovered over?
_ANS: _
p.highlight:hover{
color:green;
}
What are the four principles of Accessibility?
1) USE
2) WEBAIM
3) PORE
4) POUR
ANS: 4) POUR