CSS Quizs Question & Answers – Backgrounds, Borders and Drop Shadow

Q 1. Which of the following property defines the space between cells in a table?
A. auto
B. border
C. spacing
D. border-spacing

Show Answer Answer:-D. border-spacing
Explanation Syntax: border-spacing: non-negative length(s) | inherit

Q 2. Which of the following property defines the visual style of up to four different sides of a border?
A. border- img
B. border-color
C. border-visual
D. border-style

Show Answer Answer:-A. border- img
Explanation Syntax: border-style: style

Q 3. Which of the following property defines in a shorthand form the width, style, and color for the top border of an element?
A. border-style
B. border-height
C. border-width
D. border-top

Show Answer Answer:-D. border-top
Explanation Syntax: border-top: border-width border-style border-color;

Q 4. Which of the following property sets the shadow for a box element?
A. shadow
B. set-shadow
C. canvas-shadow
D. box-shadow

Show Answer Answer:-B. set-shadow
Explanation Syntax:box-shadow: none | inherit

Q 5. Which of the following property defines a shadow effect for text?
A. box-shadow
B. img-shadow
C. text-shadow
D. none of the mentioned

Show Answer Answer:-D. none of the mentioned
Explanation The shadow effects are applied in the order specified and may overlay each other, but they will never overlay the text itself. Each shadow effect must specify a shadow offset horizontally and vertically and may optionally specify a blur radius and a shadow color.

Q 6. Which of the following property defines a shadow color for the right and bottom edges of a scroll bar?
A. scrollbar-darkshadow
B. scrollbar-shadow-color
C. scrollbar-darkshadow-color
D. none of the mentioned

Show Answer Answer:-C. scrollbar-darkshadow-color
Explanation Syntax: scrollbar-darkshadow-color: color

Q 7. Which of the following property defines a color for the right and bottom edges of a scroll bar.
A. scrollbar-color
B. scrollbar-darkshadow-color
C. scrollbar-shadow-color
D. scrollbar-shadow

Show Answer Answer:-C. scrollbar-shadow-color
Explanation Syntax: scrollbar-shadow-color: color

Q 8. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content?
A. background-attachment
B. background-attach
C. background-scroll
D. background-allowance

Show Answer Answer:-A. background-attachment
Explanation Syntax: background-attachment: scroll | fixed | inherit

Q 9. Which of the following property sets an element’s background color?
A. background-image
B. background-color
C. background-colors
D. background-position

Show Answer Answer:-B. background-color
Explanation Syntax: background-color: color | transparent

Q 10. Which of the following property defines the color of an element’s right border?
A. border-right-colors
B. border-right
C. border-right-color
D. border-color

Show Answer Answer:-C. border-right-color
Explanation Syntax: border-right-color: color | transparent

Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page