nerdexam
CIW

1D0-720 · Question #65

In CSS3, which property is used to apply shadow to text?

The correct answer is A. text-shadow. text-shadow is the CSS3 property specifically designed to add shadow effects to text, accepting values for horizontal offset, vertical offset, blur radius, and color (e.g., text-shadow: 2px 2px 4px #000). box-shadow (B) applies shadows to the outer box/element container, not…

Advanced CSS3 Styling and Layout

Question

In CSS3, which property is used to apply shadow to text?

Options

  • Atext-shadow
  • Bbox-shadow
  • Cborder-shadow
  • Dshadow

How the community answered

(30 responses)
  • A
    87% (26)
  • B
    7% (2)
  • C
    3% (1)
  • D
    3% (1)

Explanation

text-shadow is the CSS3 property specifically designed to add shadow effects to text, accepting values for horizontal offset, vertical offset, blur radius, and color (e.g., text-shadow: 2px 2px 4px #000). box-shadow (B) applies shadows to the outer box/element container, not the text characters themselves. border-shadow (C) is not a real CSS property - borders use border and related properties. shadow (D) is also not a valid CSS property. Memory tip: The property name mirrors exactly what it does - match the target to the prefix: text-shadow for text, box-shadow for boxes.

Topics

#text-shadow#CSS3 properties#text effects#visual styling

Community Discussion

No community discussion yet for this question.

Full 1D0-720 Practice