CSS Multiple Choice Questions & Answers on Backgrounds, Borders and Drop Shadow for Freshers

1. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content?

a) background-scroll
b) background-attach
c) background-attachment
d) background-allowance
Answer: c

Explanation:
Syntax: background-attachment: scroll | fixed | inherit
2. Which of the following property sets an element’s background color?

a) background-image
b) background-color
c) background-colors
d) background-position
Answer: b

Explanation:
Syntax: background-color: color | transparent
3. Which of the following property defines the color of an element’s right border?

a) border-right-colors
b) border-right-color
c) border-right
d) border-color
Answer: b

Explanation:
Syntax: border-right-color: color | transparent
4. Which of the following property defines the space between cells in a table?

a) auto
b) border
c) spacing
d) border-spacing
Answer: d

Explanation:
Syntax: border-spacing: non-negative length(s) | inherit
5. Which of the following property defines the visual style of up to four different sides of a border?

a) border-color
b) border-img
c) border-visual
d) border-style
Answer: b

Explanation:
Syntax: border-style: style
6. 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
Answer: d

Explanation:
Syntax: border-top: border-width border-style border-color;
7. Which of the following property sets the shadow for a box element?

a) shadow
b) set-shadow
c) canvas-shadow
d) box-shadow
Answer: b

Explanation:
Syntax:box-shadow: none | inherit
8. 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
Answer: d

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.
9. 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
Answer: c

Explanation:
Syntax: scrollbar-darkshadow-color: color
10. 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
d) scrollbar-shadow-color
Answer: d

Explanation:
Syntax: scrollbar-shadow-color: color

Related

Multiple Choice Questions 8704353329772615270

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item