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;}
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;
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?
padding, border, margin
margin, border, padding
border, padding, margin
margin, padding, border
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;
Which of the following will place an element relative to the browser window?
A. absolute
B. fixed
Search WWH ::

Custom Search