Skip to content

Latest commit

 

History

History
91 lines (64 loc) · 1.84 KB

File metadata and controls

91 lines (64 loc) · 1.84 KB

Final Quiz

Question 1

The default value for the position property is:

1) fixed
2) relative
3) absolute
4) static

ANS: 4) static


Question 2

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


Question 3

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


Question 4

Which of the following is the proper syntax for a pseudo-class?

ANS:

    selector:pseudo-class { 
       property:value;
    }

Question 5

Which of the following rules styles the first paragraph in each div?

ANS:

div p:first-child { 
   color: blue;
} 

Question 6

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


Question 7

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


Question 8

Which rule will change the text color of p elements with the class "highlight" when hovered over?

_ANS: _

p.highlight:hover{ 
  color:green;
}

Question 9

What are the four principles of Accessibility?

1) USE
2) WEBAIM
3) PORE
4) POUR

ANS: 4) POUR