Professional Documents
Culture Documents
HTML5 and CSS3 Illustrated Complete 2nd Edition Vodnik Test Bank 1
HTML5 and CSS3 Illustrated Complete 2nd Edition Vodnik Test Bank 1
2. When you want to set a common value for all four sides of an element, you can use specific properties with multiple
values.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 86
4. Pixels are absolute units, which means that they represent a specific length or height that doesn't change.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 84
5. You can determine top and left positioning values by calculating the amount of space you need to move an element, or
by simple trial and error.
a. True
b. False
ANSWER: True
POINTS: 1
Cengage Learning Testing, Powered by Cognero Page 1
Name: Class: Date:
6. The location of an absolutely positioned element is calculated based on the closest ancestor element that has a position
applied to it.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 94
8. An element with a smaller z-index value is displayed on top of an element with a larger value.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 98
9. You can apply a z-index value only to an element for which you’ve declared a value for the position property.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 98
10. You can use the position property to create multicolumn layouts that look and behave just like those created with
the clear property.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 92
11. The padding, border, and margin properties all create space around the contents of a web page. Of the three properties,
margin, is the only one that can be seen in a web browser. _________________________
ANSWER: False - border
POINTS: 1
REFERENCES: 84
Cengage Learning Testing, Powered by Cognero Page 2
Name: Class: Date:
12. Margin is the space inside a border between the border and the element content. _________________________
ANSWER: False - Padding
POINTS: 1
REFERENCES: 84
14. Some of the most widely used layouts in print media involve columns of text and graphics running parallel to each
other down the page. You can use the border and clear properties to create a basic version of this arrangement.
_________________________
ANSWER: False - float
POINTS: 1
REFERENCES: 92
15. In the CSS box model, the margin is always opaque. _________________________
ANSWER: False - transparent
POINTS: 1
REFERENCES: 85
16. A positioned element is placed in a new layer, which is a new level displayed on top of the basic flow of elements on
the web page. _________________________
ANSWER: True
POINTS: 1
REFERENCES: 98
17. You can control the stacking order of positioned elements by assigning values for the x-index property to each
element. _________________________
ANSWER: False - z-index
POINTS: 1
REFERENCES: 98
18. A simple technique for ensuring consistency of the visual design in different window sizes is to specify a fixed width
for the content of a web page, creating what’s commonly known as a static layout. _________________________
ANSWER: True
POINTS: 1
REFERENCES: 99
19. You can use filler text, also called fake text, to simulate content, which allows you to work with a document with a lot
of content even if it is not the final content. _________________________
ANSWER: False - lorem ipsum
POINTS: 1
20. A fluid layout uses the min-width and max-width properties to constrain the size of the content.
_________________________
ANSWER: True
POINTS: 1
REFERENCES: 99
21. CSS represents the characteristics of every web page element using the ____ model, which treats each element as a
rectangular box having several global properties.
a. box b. rectangle
c. Element d. CSS
ANSWER: a
POINTS: 1
REFERENCES: 84
22. A CSS unit of measure equal to approximately 1/96 of an inch is a(n) ________ .
a. em b. px
c. % d. rem
ANSWER: b
POINTS: 1
REFERENCES: 85
23. The ____ properties all create space around the contents of a web page element.
a. padding b. border
c. margin d. All of the above.
ANSWER: d
POINTS: 1
REFERENCES: 84
24. ____ is the space outside the border between the border and adjacent or parent elements.
a. Margin b. Padding
c. Border d. Framing
ANSWER: a
POINTS: 1
REFERENCES: 84
25. The size of the ____, border, and margin all increase the amount of space on a web page that an element occupies or
influences.
a. picture b. frame
c. style d. padding
ANSWER: d
POINTS: 1
REFERENCES: 84
Cengage Learning Testing, Powered by Cognero Page 4
Name: Class: Date:
27. The box model supports a separate property for each side for ____, such as padding-top or margin-left.
a. padding b. margin
c. Both A and B. d. Neither A nor B.
ANSWER: c
POINTS: 1
REFERENCES: 84
28. If you provide four values for the margin or padding property, browsers apply the first value to the ____.
a. top b. right
c. bottom d. left
ANSWER: a
POINTS: 1
REFERENCES: 88
29. For a margin-value pair with three values, the first value applies to the top, the second to ____.
a. the left b. the right
c. Both A and B. d. Neither A nor B.
ANSWER: c
POINTS: 1
REFERENCES: 88
30. When working with box model shorthand properties, a border with three values will have values that apply to width,
style, and ____.
a. resolution b. height
c. margin d. color
ANSWER: d
POINTS: 1
REFERENCES: 84
31. A widely used layout involves columns of text and graphics running parallel to each other down the page. You can
create a basic version of this arrangement, known as a ____ layout.
a. horizontal b. multicolumn
c. parallel d. vertical
ANSWER: b
POINTS: 1
REFERENCES: 92