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…
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)- A89% (33)
- B5% (2)
- C3% (1)
- D3% (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
Community Discussion
No community discussion yet for this question.