HTML and CSS Reference
In-Depth Information
Objective review
Answer the following questions to test your knowledge of the information in this objective.
You can find the answers to these questions and explanations of why each answer choice is
correct or incorrect in the “Answers” section at the end of this chapter.
Which of the following is not a valid way to alter the size of an element?
A. div{height: 50px; width: 50%;}
B. div{height: 50px; width: 50px;}
C. div{height: 50cm; width: 50px;
D. div{height: 50ft; width: 50ft;}
1.
Which of the following will successfully style the border of a div element?
A. border-top: 5px dotted blue;
border-right: 5px solid green;
border-left: 3px dashed red;
border-bottom: 10px double black;
B. border-sides: 5px solid green;
C. border-all: 1px solid black;
D. border: full red;
2.
When looking from the outside edge of an HTML element and moving to the inside
edge, what order does the padding, margin, and border occur in?
3.
padding, border, margin
A.
margin, border, padding
B.
border, padding, margin
C.
margin, padding, border
D.
Which of the following statements will apply a box shadow to the right and bottom
edge of a div element?
A. box-shadow: gray 5px 5px;
B. box-shadow: gray -5px 5px;
C. box-shadow: gray 5px -5px;
D. box-shadow: gray -5px -5px;
4.
Which of the following will place an element relative to the browser window?
A. absolute
B. fixed
5.
relative
C.
 
Search WWH ::




Custom Search