Which CSS property is used to apply shadow to text?
A
box-shadow B
text-shadow C
font-shadow D
shadow
Analysis & Theory
`text-shadow` is the correct CSS property to add shadow to text.
Which CSS property adds shadow around an element's box?
A
shadow-box B
text-shadow C
box-shadow D
border-shadow
Analysis & Theory
`box-shadow` adds a shadow to the element's box (outside its border).
What does the following CSS rule do? `text-shadow: 2px 2px 5px gray;`
A
Creates a light gray border B
Moves text 2px right and down, blurs 5px with gray color C
Increases text size by 5px D
Changes text color to gray
Analysis & Theory
`text-shadow: 2px 2px 5px gray;` adds a gray shadow 2px right, 2px down, and with a 5px blur.
Which is the correct order of values in `box-shadow`?
A
color, blur-radius, x-offset, y-offset B
x-offset, y-offset, blur-radius, color C
x-offset, blur-radius, y-offset, color D
color, x-offset, y-offset, blur-radius
Analysis & Theory
The correct order is `x-offset y-offset blur-radius color` in `box-shadow`.
Which value of `box-shadow` adds a shadow **inside** the element?
A
outer B
inset C
inner D
inside
Analysis & Theory
`inset` makes the shadow appear **inside** the box instead of outside.
What happens if you set `text-shadow: 0 0 0 red;`?
A
No visible shadow B
A large red glow C
Red text D
Red border
Analysis & Theory
A `0 0 0` shadow results in no offset or blur, so no visible shadow.
Which of the following is a valid `box-shadow` declaration?
A
box-shadow: gray 5px 5px; B
box-shadow: 5px 5px 5px gray; C
box-shadow: 5 5 5 gray; D
box-shadow: shadow 5px gray;
Analysis & Theory
`box-shadow: 5px 5px 5px gray;` is valid with x-offset, y-offset, blur, and color.
Which unit can be used for shadow offsets in CSS?
A
px B
% C
em D
All of the above
Analysis & Theory
Shadow offsets can use `px`, `em`, `rem`, or `%`, though `px` is most common.
Can you apply **multiple** shadows using `box-shadow`?
A
No B
Only with text-shadow C
Yes, by comma-separating shadows D
Only in newer browsers
Analysis & Theory
You can apply multiple shadows by separating them with commas in `box-shadow`.
What does a negative x-offset in `box-shadow` do?
A
Moves the shadow right B
Moves the shadow left C
Makes the shadow blur D
Removes the shadow
Analysis & Theory
A negative x-offset moves the shadow to the **left**.