nerdexam
CIW

1D0-720 · Question #37

In CSS3, how can you apply a shadow to text?

The correct answer is A. text-shadow. text-shadow is the correct CSS3 property for adding shadows to text, accepting values for horizontal offset, vertical offset, blur radius, and color (e.g., text-shadow: 2px 2px 4px #000). Options B (font-shadow) and C (shadow-text) do not exist in CSS - they are…

Advanced CSS3 Styling and Layout

Question

In CSS3, how can you apply a shadow to text?

Options

  • Atext-shadow
  • Bfont-shadow
  • Cshadow-text
  • Dtext-effect

How the community answered

(37 responses)
  • A
    89% (33)
  • B
    5% (2)
  • C
    3% (1)
  • D
    3% (1)

Explanation

text-shadow is the correct CSS3 property for adding shadows to text, accepting values for horizontal offset, vertical offset, blur radius, and color (e.g., text-shadow: 2px 2px 4px #000). Options B (font-shadow) and C (shadow-text) do not exist in CSS - they are plausible-sounding fabrications. Option D (text-effect) is also not a real CSS property, though it sounds like it could belong to the spec.

Memory tip: Think "shadow the text" → the noun comes first, giving you text-shadow, the same naming pattern as text-decoration and text-transform - CSS text properties always start with text-.

Topics

#text-shadow#CSS3 text effects#Text styling#CSS properties

Community Discussion

No community discussion yet for this question.

Full 1D0-720 Practice