Test Series - css

Test Number 27/59

Q: Which of the following elements are block and inline elements, respectively, that have no particular rendering?
A. div
B. span
C. box-model
D. both div and span
Solution: The div element and span element are block and inline elements, respectively, that have no particular rendering. You might call them generic tags. Because these tags don’t have any predefined meaning or rendering, they are very useful for arbitrary style duties.
Q: The _____________ property specifies the background color of an element.
A. background-color
B. border
C. color
D. display
Solution: Example:
body {
    background-image: url("img_tree.png");
    background-repeat: no-repeat;
}
Q: The ___________ property specifies if/how an element is displayed.
A. background-color
B. border
C. color
D. display
Solution: h1.hidden {
    display: none;
}
Q: The _____________ property allows us to include the padding and border in an element’s total width and height.
A. margin
B. box-sizing
C. padding
D. none of the mentioned
Solution: Example:
.div1 {
    box-sizing: border-box;
}
Q: ___________ property sets the coordinates of the clipping shape that exposes or hides the content of absolutely positioned elements
A. clammper
B. clip
C. clear
D. none of the mentioned
Solution: clip: rect(coordinates) | auto | inherit
Q: _____________ property defines the space between cells in a table.
A. border
B. border-spacing
C. border-style
D. none of the mentioned
Solution: border-spacing: non-negative length(s) | inherit
Q: ___________ property defines whether table cell borders are connected or separate.
A. border-color
B. border
C. border-style
D. none of the mentioned
Solution: border-collapse roperty defines whether table cell borders are connected or separate.
Q: _____________ property sets the background image to scroll or not to scroll with its associated element’s content
A. background
B. background-position
C. background-attachment
D. none of the mentioned
Solution: Example:
background-attachment: scroll | fixed | inherit
Q: ___________ property associates a background image with an element.
A. image
B. background-image
C. float
D. none of the mentioned
Solution: background-image: url(image-file) | none | inherit
Q: _____________ property defines whether table cell borders are connected or separate.
A. pre
B. border-color
C. border-collapse
D. none of the mentioned
Solution: border-collapse: collapse | separate | inherit

You Have Score    /10